1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-05-13 22:06:58 +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

View File

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