mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 17:49:10 +00:00
feat(Core/Hooks): Add OnAfterDatabaseLoadCreatureTemplates hook (#17621)
* Add OnAfterDatabaseLoadCreatureTemplates hook - fix issue where the fast template cache was not updated correctly after a CS reload of a single creature template * Parameter naming tweak to reduce confusion. * Refactor to streamline fastcache creation, remove threading concerns * Remove unneeded resize when loading creature templates * Update fast cache resizing to highest-performing option
This commit is contained in:
@@ -476,7 +476,7 @@ public:
|
||||
|
||||
Field* fields = result->Fetch();
|
||||
|
||||
sObjectMgr->LoadCreatureTemplate(fields);
|
||||
sObjectMgr->LoadCreatureTemplate(fields, true);
|
||||
sObjectMgr->CheckCreatureTemplate(cInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user