Skip to content

Commit e24451a

Browse files
authored
fix: Ensure config is loaded before loading collections (#221)
1 parent 01c40bc commit e24451a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/transmog_scripts.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,16 +1216,9 @@ class WS_Transmogrification : public WorldScript
12161216
{
12171217
public:
12181218
WS_Transmogrification() : WorldScript("WS_Transmogrification", {
1219-
WORLDHOOK_ON_AFTER_CONFIG_LOAD,
12201219
WORLDHOOK_ON_STARTUP
12211220
}) { }
12221221

1223-
void OnAfterConfigLoad(bool reload) override
1224-
{
1225-
if (!reload)
1226-
sT->LoadCollections();
1227-
}
1228-
12291222
void OnStartup() override
12301223
{
12311224
sT->LoadConfig(false);
@@ -1237,6 +1230,8 @@ class WS_Transmogrification : public WorldScript
12371230
// Dont delete even if player has more presets than should
12381231
CharacterDatabase.Execute("DELETE FROM `custom_transmogrification_sets` WHERE NOT EXISTS(SELECT 1 FROM characters WHERE characters.guid = custom_transmogrification_sets.Owner)");
12391232
#endif
1233+
1234+
sT->LoadCollections();
12401235
}
12411236
};
12421237

0 commit comments

Comments
 (0)