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:
parent
52d37a927d
commit
751ffc7c70
5 changed files with 51 additions and 18 deletions
|
|
@ -476,7 +476,7 @@ public:
|
|||
|
||||
Field* fields = result->Fetch();
|
||||
|
||||
sObjectMgr->LoadCreatureTemplate(fields);
|
||||
sObjectMgr->LoadCreatureTemplate(fields, true);
|
||||
sObjectMgr->CheckCreatureTemplate(cInfo);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue