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:
KJack
2023-10-31 05:58:45 -04:00
committed by GitHub
parent 52d37a927d
commit 751ffc7c70
5 changed files with 51 additions and 18 deletions

View File

@@ -476,7 +476,7 @@ public:
Field* fields = result->Fetch();
sObjectMgr->LoadCreatureTemplate(fields);
sObjectMgr->LoadCreatureTemplate(fields, true);
sObjectMgr->CheckCreatureTemplate(cInfo);
}