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:
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user