mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
* INFINITE_DIST is now enum, it should cause least trouble that way. Uh, it's so hard to fight magic values these days.
* Fixed crashes in battles after loading game * Fixed crash in battle AI, when stack is blocked and stands next to an enemy * Fixes problem when server's moveStack is called with dest==position * Above should cover #1053.
This commit is contained in:
@ -473,7 +473,7 @@ void CClient::serialize( Handler &h, const int version )
|
||||
else
|
||||
nInt = new CPlayerInterface(pid);
|
||||
|
||||
callbacks[pid] = make_shared<CCallback>(gs,pid,this);
|
||||
battleCallbacks[pid] = callbacks[pid] = make_shared<CCallback>(gs,pid,this);
|
||||
battleints[pid] = playerint[pid] = nInt;
|
||||
nInt->init(callbacks[pid].get());
|
||||
nInt->serialize(h, version);
|
||||
|
Reference in New Issue
Block a user