[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:
Alex King 2024-02-12 21:12:30 -05:00 committed by GitHub
parent e060d97798
commit 43c7523ee1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1898,6 +1898,10 @@ void Zone::Repop(bool is_forced)
return;
}
if (is_forced) {
ClearSpawnTimers();
}
LinkedListIterator<Spawn2 *> iterator(spawn2_list);
iterator.Reset();
@ -1905,10 +1909,6 @@ void Zone::Repop(bool is_forced)
iterator.RemoveCurrent();
}
if (is_forced) {
ClearSpawnTimers();
}
npc_scale_manager->LoadScaleData();
entity_list.ClearTrapPointers();