1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Fixed at least two #1428 freezes, likely more.

They were occurring when AI hero visited bank that was also guarded by neutral creature nearby,
This commit is contained in:
Michał W. Urbańczyk
2013-09-27 23:46:58 +00:00
parent 0a0048fdf4
commit d1807585ad
8 changed files with 71 additions and 12 deletions

View File

@@ -5037,6 +5037,7 @@ void CGameHandler::engageIntoBattle( PlayerColor player )
PlayerBlocked pb;
pb.player = player;
pb.reason = PlayerBlocked::UPCOMING_BATTLE;
pb.startOrEnd = PlayerBlocked::BLOCKADE_STARTED;
sendAndApply(&pb);
}