1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fixed #1055 - hang when creature performed automatic (not controleld by player) action.

Fixed possible crash on arrow turret turn.
This commit is contained in:
Michał W. Urbańczyk
2012-08-27 12:34:43 +00:00
parent 7ce9e95525
commit a14f381d48
5 changed files with 41 additions and 23 deletions

View File

@@ -589,6 +589,9 @@ void BattleNextRound::applyCl( CClient *cl )
void BattleSetActiveStack::applyCl( CClient *cl )
{
if(!askPlayerInterface)
return;
const CStack * activated = GS(cl)->curB->battleGetStackByID(stack);
int playerToCall = -1; //player that will move activated stack
if( activated->hasBonusOfType(Bonus::HYPNOTIZED) )