1
0

null spawn ptr fix for SetSpellList

This commit is contained in:
Emagi 2025-02-01 06:52:36 -05:00
parent 41cc36de83
commit 31c45c884c

View File

@ -5150,7 +5150,7 @@ int EQ2Emu_lua_SetSpellList(lua_State* state) {
secondary_list = lua_interface->GetInt32Value(state, 3); secondary_list = lua_interface->GetInt32Value(state, 3);
lua_interface->ResetFunctionStack(state); lua_interface->ResetFunctionStack(state);
if (!spawn->IsNPC()) { if (!spawn || !spawn->IsNPC()) {
lua_interface->LogError("%s: LUA SetSpellList command error: Spawn was not a valid NPC", lua_interface->GetScriptName(state)); lua_interface->LogError("%s: LUA SetSpellList command error: Spawn was not a valid NPC", lua_interface->GetScriptName(state));
return 0; return 0;
} }