Explorar o código

potential crash fix

Image %!s(int64=4) %!d(string=hai) anos
pai
achega
25d9c9d93f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      EQ2/source/WorldServer/LuaFunctions.cpp

+ 1 - 1
EQ2/source/WorldServer/LuaFunctions.cpp

@@ -676,7 +676,7 @@ int EQ2Emu_lua_StartConversation(lua_State* state) {
 		lua_interface->SetConversationValue(state, NULL);
 	}
 	else
-		LogWrite(LUA__ERROR, 0, "LUA", "Spawn %s Error in StartConversation, potentially AddConversationOption not yet called or the StartConversation arguments are incorrect, text: %s, conversationSize: %i.", npc->GetName(), text.c_str(), conversation ? conversation->size() : -1);
+		LogWrite(LUA__ERROR, 0, "LUA", "Spawn %s Error in StartConversation, potentially AddConversationOption not yet called or the StartConversation arguments are incorrect, text: %s, conversationSize: %i.", npc ? npc->GetName() : "UNKNOWN", text.size() ? text.c_str() : "", conversation ? conversation->size() : -1);
 	return 0;
 }