Skip to content

Commit e3087d9

Browse files
committed
Missed typedef
1 parent c8ddffb commit e3087d9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

LuaEngine.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,10 +1107,12 @@ void Eluna::FreeInstanceId(uint32 instanceId)
11071107
{
11081108
for (int i = 1; i < Hooks::INSTANCE_EVENT_COUNT; ++i)
11091109
{
1110-
auto key = EntryKey<Hooks::InstanceEvents>((Hooks::InstanceEvents)i, instanceId);
1110+
typedef EntryKey<Hooks::InstanceEvents> Key;
1111+
1112+
auto key = Key((Hooks::InstanceEvents)i, instanceId);
11111113

1112-
auto MapEventBindings = GetBinding<EntryKey<Hooks::InstanceEvents>>("MapEvents");
1113-
auto InstanceEventBindings = GetBinding<EntryKey<Hooks::InstanceEvents>>("InstanceEvents");
1114+
auto MapEventBindings = GetBinding<Key>("MapEvents");
1115+
auto InstanceEventBindings = GetBinding<Key>("InstanceEvents");
11141116

11151117
if (MapEventBindings->HasBindingsFor(key))
11161118
MapEventBindings->Clear(key);

0 commit comments

Comments
 (0)