Browse Source

Fix setting current zone if player pointer is not present for client

Emagi 1 year ago
parent
commit
97f0d66bea
1 changed files with 3 additions and 1 deletions
  1. 3 1
      EQ2/source/WorldServer/client.h

+ 3 - 1
EQ2/source/WorldServer/client.h

@@ -226,7 +226,9 @@ public:
 	void	SetCurrentZone(int32 id);
 	void	SetCurrentZone(ZoneServer* zone) { 
 		current_zone = zone;
-		player->SetZone(zone, GetVersion());
+		if(player) {
+			player->SetZone(zone, GetVersion());
+		}
 	}
 	void	SetZoningDestination(ZoneServer* zone) {
 		zoning_destination = zone;