We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4790ef8 commit eca1ccfCopy full SHA for eca1ccf
2 files changed
LuaEngine.cpp
@@ -16,7 +16,6 @@
16
#include "ElunaUtility.h"
17
#include "ElunaCreatureAI.h"
18
#include "ElunaInstanceAI.h"
19
-#include "Hooks.h"
20
21
extern "C"
22
{
@@ -193,13 +192,14 @@ void Eluna::DestroyBindStores()
193
192
void Eluna::RegisterHookGlobals(lua_State* _L)
194
195
lua_newtable(_L);
196
- auto [hookData, hookCount] = HookToReadableString::getHooks();
+ auto const& [hookData, hookCount] = Hooks::getHooks();
197
for (size_t i = 0; i < hookCount; ++i) {
198
const HookStorage& hs = hookData[i];
199
200
lua_newtable(_L); // subtable for category
201
202
- for (size_t j = 0; j < hs.eventCount; ++j) {
+ for (size_t j = 0; j < hs.eventCount; ++j)
+ {
203
lua_pushinteger(_L, hs.events[j].id);
204
lua_setfield(_L, -2, hs.events[j].name);
205
}
0 commit comments