Fix crash when eluna disabled. ~Natrist

This commit is contained in:
Rochet2
2016-10-06 22:36:48 +03:00
committed by GitHub
parent 0541cebfb1
commit f0b1b3499b

View File

@@ -1315,6 +1315,9 @@ void Eluna::FreeInstanceId(uint32 instanceId)
{
LOCK_ELUNA;
if (!IsEnabled())
return;
for (int i = 1; i < Hooks::INSTANCE_EVENT_COUNT; ++i)
{
auto key = EntryKey<Hooks::InstanceEvents>((Hooks::InstanceEvents)i, instanceId);