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