mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fix crash on starting battle in MP
This commit is contained in:
parent
18c0217679
commit
359af84d59
@ -641,6 +641,9 @@ void CClient::battleFinished(const BattleID & battleID)
|
||||
|
||||
void CClient::startPlayerBattleAction(const BattleID & battleID, PlayerColor color)
|
||||
{
|
||||
if (battleints.count(color) == 0)
|
||||
return; // not our combat in MP
|
||||
|
||||
auto battleint = battleints.at(color);
|
||||
|
||||
if (!battleint->human)
|
||||
|
@ -21,7 +21,7 @@ class Canvas;
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
class CArmedInstance;
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
||||
class IUpdateable
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user