File tree Expand file tree Collapse file tree 2 files changed +384
-469
lines changed
Expand file tree Collapse file tree 2 files changed +384
-469
lines changed Original file line number Diff line number Diff line change 1616#include " ElunaUtility.h"
1717#include " ElunaCreatureAI.h"
1818#include " ElunaInstanceAI.h"
19- #include " Hooks.h"
2019
2120extern " C"
2221{
@@ -193,13 +192,14 @@ void Eluna::DestroyBindStores()
193192void Eluna::RegisterHookGlobals (lua_State* _L)
194193{
195194 lua_newtable (_L);
196- auto [hookData, hookCount] = HookToReadableString ::getHooks ();
195+ auto const & [hookData, hookCount] = Hooks ::getHooks ();
197196 for (size_t i = 0 ; i < hookCount; ++i) {
198197 const HookStorage& hs = hookData[i];
199198
200199 lua_newtable (_L); // subtable for category
201200
202- for (size_t j = 0 ; j < hs.eventCount ; ++j) {
201+ for (size_t j = 0 ; j < hs.eventCount ; ++j)
202+ {
203203 lua_pushinteger (_L, hs.events [j].id );
204204 lua_setfield (_L, -2 , hs.events [j].name );
205205 }
You can’t perform that action at this time.
0 commit comments