Преглед изворни кода

Fix crash on /findspawn with no arguments

Image пре 3 година
родитељ
комит
b1b036f3a2
1 измењених фајлова са 2 додато и 1 уклоњено
  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]);
 }