Patch up missing removal points

This commit is contained in:
Emagi 2023-01-16 14:49:17 -05:00
parent 6351a004f9
commit dd718e7d78

View file

@ -518,6 +518,7 @@ void ZoneServer::DeleteData(bool boot_clients){
} }
else{ else{
RemoveSpawnSupportFunctions(spawn, true); RemoveSpawnSupportFunctions(spawn, true);
RemoveSpawnFromGrid(spawn, GetLocation());
AddPendingDelete(spawn); AddPendingDelete(spawn);
} }
} }
@ -809,6 +810,7 @@ void ZoneServer::ProcessDepop(bool respawns_allowed, bool repop) {
tmp_player_list.Add(spawn); tmp_player_list.Add(spawn);
else { else {
RemoveSpawnSupportFunctions(spawn, true); RemoveSpawnSupportFunctions(spawn, true);
RemoveSpawnFromGrid(spawn, GetLocation());
AddPendingDelete(spawn); AddPendingDelete(spawn);
} }
} }