Browse Source

Fix crash on /findspawn with no arguments

Image 3 years ago
parent
commit
b1b036f3a2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      EQ2/source/WorldServer/Commands/Commands.cpp

+ 2 - 1
EQ2/source/WorldServer/Commands/Commands.cpp

@@ -10333,5 +10333,6 @@ void Commands::Command_TargetItem(Client* client, Seperator* sep) {
 }
 
 void Commands::Command_FindSpawn(Client* client, Seperator* sep) {
-	client->GetCurrentZone()->FindSpawn(client, (char*)sep->argplus[0]);
+	if(sep)
+		client->GetCurrentZone()->FindSpawn(client, (char*)sep->argplus[0]);
 }