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:
@@ -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) )
|
||||
|
||||
Reference in New Issue
Block a user