Browse Source

Update Combat.cpp

Fixes #74
Image 4 years ago
parent
commit
89ff042377
1 changed files with 2 additions and 0 deletions
  1. 2 0
      EQ2/source/WorldServer/Combat.cpp

+ 2 - 0
EQ2/source/WorldServer/Combat.cpp

@@ -1086,6 +1086,8 @@ void Entity::KillSpawn(Spawn* dead, int8 damage_type, int16 kill_blow_type) {
 	LogWrite(COMBAT__DEBUG, 3, "Combat", "Killing '%s'", dead->GetName());
 
 	// Kill movement for the dead npc so the corpse doesn't move
+	GetZone()->movementMgr->StopNavigation((Entity*)dead);
+	dead->ClearRunningLocations();
 	dead->CalculateRunningLocation(true);
 
 	GetZone()->KillSpawn(true, dead, this, true, damage_type, kill_blow_type);