Browse Source

bugfix: wrong type comparison.

master
MagicBot 1 year ago
parent
commit
c1a14a22e8
  1. 2
      src/engine/net/client/handlers/MinionTrainingMsgHandler.java

2
src/engine/net/client/handlers/MinionTrainingMsgHandler.java

@ -165,7 +165,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
int slot; int slot;
if (building.getBlueprint().equals(Enum.BuildingGroup.ARTYTOWER)) if (building.getBlueprint().getBuildingGroup().equals(Enum.BuildingGroup.ARTYTOWER))
slot = 2; slot = 2;
else else
slot = ((NPC) siegeMob.npcOwner).getSiegeMinionMap().get(siegeMob) + 1; // First slot is for the captain slot = ((NPC) siegeMob.npcOwner).getSiegeMinionMap().get(siegeMob) + 1; // First slot is for the captain

Loading…
Cancel
Save