1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-05-23 22:40:07 +02:00

Fix crash for disconnecting client

This commit is contained in:
nordsoft 2022-09-30 19:32:24 +04:00
parent 628abd1428
commit 28ab1e9777

@ -349,7 +349,7 @@ public:
inline bool isBattleOutsideTown(const CGHeroInstance * defendingHero) const inline bool isBattleOutsideTown(const CGHeroInstance * defendingHero) const
{ {
return defendingHero && garrisonHero && defendingHero != garrisonHero; return defendingHero && defendingHero != garrisonHero;
} }
protected: protected:
void setPropertyDer(ui8 what, ui32 val) override; void setPropertyDer(ui8 what, ui32 val) override;