mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
demonstar55's entity list changes (slightly modified) and a crash fix for the #repop command used in rapid succession.
This commit is contained in:
+2
-2
@@ -353,7 +353,7 @@ NPC::NPC(const NPCType* d, Spawn2* in_respawn, float x, float y, float z, float
|
||||
|
||||
NPC::~NPC()
|
||||
{
|
||||
entity_list.RemoveNPC(GetID());
|
||||
//entity_list.RemoveNPC(GetID());
|
||||
AI_Stop();
|
||||
|
||||
if(proximity != nullptr) {
|
||||
@@ -362,7 +362,7 @@ NPC::~NPC()
|
||||
}
|
||||
|
||||
//clear our spawn limit record if we had one.
|
||||
entity_list.LimitRemoveNPC(this);
|
||||
//entity_list.LimitRemoveNPC(this);
|
||||
|
||||
safe_delete(NPCTypedata_ours);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user