fix: property behavior crashes (#1813)

This commit is contained in:
David Markowitz
2025-06-08 19:41:43 -07:00
committed by GitHub
parent 2858345269
commit c19ee04c8a
5 changed files with 17 additions and 6 deletions

View File

@@ -29,6 +29,7 @@ public:
/* Gets a pointer to the currently loaded zone. */
Zone* GetZoneMut() const;
const Zone* GetZone() const { return GetZoneMut(); };
bool HasZone() const { return m_pZone != nullptr; };
void LoadZone(const LWOZONEID& zoneID); //Discard the current zone (if any) and loads a new zone.
/* Adds a spawner to the zone with the specified ID. */