mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
[Hotfix] Fix ClearSpawnTimers() (#4073)
# Notes - This wasn't a part of my other pull request. - We were clearing `spawn2_list` before using it in `ClearSpawnTimers()`.
This commit is contained in:
parent
e060d97798
commit
43c7523ee1
@ -1898,6 +1898,10 @@ void Zone::Repop(bool is_forced)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_forced) {
|
||||||
|
ClearSpawnTimers();
|
||||||
|
}
|
||||||
|
|
||||||
LinkedListIterator<Spawn2 *> iterator(spawn2_list);
|
LinkedListIterator<Spawn2 *> iterator(spawn2_list);
|
||||||
|
|
||||||
iterator.Reset();
|
iterator.Reset();
|
||||||
@ -1905,10 +1909,6 @@ void Zone::Repop(bool is_forced)
|
|||||||
iterator.RemoveCurrent();
|
iterator.RemoveCurrent();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_forced) {
|
|
||||||
ClearSpawnTimers();
|
|
||||||
}
|
|
||||||
|
|
||||||
npc_scale_manager->LoadScaleData();
|
npc_scale_manager->LoadScaleData();
|
||||||
|
|
||||||
entity_list.ClearTrapPointers();
|
entity_list.ClearTrapPointers();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user