Eluna Closes:
#70, #69, #83, http://emudevs.com/showthread.php/3438-Custom-Items-and-On-Item-Use-Events Fixes Object::~Object crash log from #71
This commit is contained in:
@@ -50,6 +50,18 @@ void Eluna::ReloadEluna()
|
||||
Uninitialize();
|
||||
Initialize();
|
||||
|
||||
#ifdef TRINITY
|
||||
// Re initialize creature AI restoring C++ AI or applying lua AI
|
||||
{
|
||||
TRINITY_READ_GUARD(HashMapHolder<Creature>::LockType, *HashMapHolder<Creature>::GetLock());
|
||||
HashMapHolder<Creature>::MapType const& m = ObjectAccessor::GetCreatures();
|
||||
for (HashMapHolder<Creature>::MapType::const_iterator iter = m.begin(); iter != m.end(); ++iter)
|
||||
{
|
||||
iter->second->AIM_Initialize();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
reload = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user