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

@@ -713,12 +713,12 @@ void HandleMasterPacket(Packet* packet) {
//Create our user and send them in:
UserManager::Instance()->CreateUser(it->second.sysAddr, username.GetAsString(), userHash);
auto zone = Game::zoneManager->GetZone();
if (zone) {
if (Game::zoneManager->HasZone()) {
float x = 0.0f;
float y = 0.0f;
float z = 0.0f;
auto zone = Game::zoneManager->GetZone();
if (zone->GetZoneID().GetMapID() == 1100) {
auto pos = zone->GetSpawnPos();
x = pos.x;