Browse Source

Going to additionally avoid calling lua removespell on zone shutdown

Emagi 11 tháng trước cách đây
mục cha
commit
54775d0327
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      EQ2/source/WorldServer/SpellProcess.cpp

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

@@ -491,7 +491,7 @@ bool SpellProcess::DeleteCasterSpell(LuaSpell* spell, string reason, bool removi
 			}
 			ret = true;
 		}
-		if(lua_interface)
+		if(lua_interface && !zone_shutting_down)
 			lua_interface->RemoveSpell(spell, true, SpellScriptTimersHasSpell(spell), reason, removing_all_spells);
 	}