Fix the number of players in zone to be more accurate
This commit is contained in:
parent
314fc8396c
commit
3200c1d66d
@ -4692,7 +4692,7 @@ void ZoneServer::RemoveFromRangeMap(Client* client){
|
||||
|
||||
void ZoneServer::RemoveSpawn(Spawn* spawn, bool delete_spawn, bool respawn, bool lock, bool erase_from_spawn_list, bool lock_spell_process)
|
||||
{
|
||||
if(spawn->IsPlayer()) {
|
||||
if(!spawn->IsDeletedSpawn() && spawn->IsPlayer()) {
|
||||
if(pNumPlayers > 0)
|
||||
pNumPlayers--;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user