mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[7845] Implement reload support for creature eventAI tables.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
75d7a4c0cb
commit
4617ac1dc1
5 changed files with 52 additions and 8 deletions
|
|
@ -39,6 +39,7 @@ int CreatureEventAI::Permissible(const Creature *creature)
|
|||
|
||||
CreatureEventAI::CreatureEventAI(Creature *c ) : CreatureAI(c)
|
||||
{
|
||||
// Need make copy for filter unneeded steps and safe in case table reload
|
||||
CreatureEventAI_Event_Map::const_iterator CreatureEvents = CreatureEAI_Mgr.GetCreatureEventAIMap().find(m_creature->GetEntry());
|
||||
if (CreatureEvents != CreatureEAI_Mgr.GetCreatureEventAIMap().end())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue