[Bugfix] Load zone variables before encounter_load. (#4846)

This commit is contained in:
zimp-wow
2025-04-09 20:59:19 -05:00
committed by GitHub
parent b883888a19
commit 4fc0ffd173
3 changed files with 36 additions and 12 deletions
+5
View File
@@ -1191,6 +1191,11 @@ bool Zone::Init(bool is_static) {
RespawnTimesRepository::ClearExpiredRespawnTimers(database);
// Loading zone variables so they're available for things like encounter_load
if (RuleB(Zone, StateSavingOnShutdown)) {
zone->LoadZoneVariablesState();
}
// make sure that anything that needs to be loaded prior to scripts is loaded before here
// this is to ensure that the scripts have access to the data they need
parse->ReloadQuests(true);