File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ struct HookStorage
341341class HookToReadableString
342342{
343343public:
344- static std::pair<const HookStorage*, size_t > getHooks () { return {HookMegaTable, sizeof (HookMegaTable) / sizeof (HookMegaTable[ 0 ]) }; }
344+ static std::pair<const HookStorage*, size_t > getHooks () { return {HookMegaTable, HookMegaTableSize }; }
345345
346346private:
347347 static constexpr EventEntry PacketEventsTable[] = {
@@ -572,6 +572,7 @@ class HookToReadableString
572572 { " bg" , BGEventsTable, sizeof (BGEventsTable) / sizeof (BGEventsTable[0 ])},
573573 { " instance" , InstanceEventsTable, sizeof (InstanceEventsTable) / sizeof (InstanceEventsTable[0 ])},
574574 };
575+ static constexpr size_t HookMegaTableSize = sizeof (HookMegaTable) / sizeof (HookMegaTable[0 ]);
575576};
576577
577578#endif // _HOOKS_H
You can’t perform that action at this time.
0 commit comments