mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-02 23:40:26 +00:00
[Bugfix] Load zone variables before encounter_load. (#4846)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user