beegee1 12 gadi atpakaļ
vecāks
revīzija
aa1c193b88
1 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 5 5
      client/battle/CBattleInterface.cpp

+ 5 - 5
client/battle/CBattleInterface.cpp

@@ -1679,14 +1679,14 @@ void CBattleInterface::setHoveredStack(const CStack * stack)
 
 void CBattleInterface::activateStack()
 {
+	myTurn = true;
+	if(!!attackerInt && defenderInt) //hotseat -> need to pick which interface "takes over" as active
+		curInt = attackerInt->playerID == stackToActivate->owner ? attackerInt : defenderInt;
+
 	setActiveStack(stackToActivate);
 	stackToActivate = nullptr;
 	const CStack *s = activeStack;
 
-	myTurn = true;
-	if(!!attackerInt && defenderInt) //hotseat -> need to pick which interface "takes over" as active
-		curInt = attackerInt->playerID == s->owner ? attackerInt : defenderInt;
-
 	queue->update();
 	redrawBackgroundWithHexes(activeStack);
 
@@ -3672,4 +3672,4 @@ void CBattleInterface::showPiecesOfWall(SDL_Surface * to, std::vector<int> piece
 			}
 		}
 	}
-}
+}