1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed mantis #1582

This commit is contained in:
beegee1 2013-11-02 20:07:45 +00:00
parent 9ebd4a5c00
commit aa1c193b88

View File

@ -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);