This commit is contained in:
Richard Holland
2023-03-07 07:24:18 +00:00
parent 2b1727fb05
commit c0efc5ea5f

View File

@@ -1631,7 +1631,7 @@ SetHook::setHook()
return reserve; return reserve;
}; };
for (int i = 0; i < 4; ++i) for (int i = 0; i < hook::maxHookChainLength(); ++i)
{ {
if (oldHooks && i < oldHookCount) if (oldHooks && i < oldHookCount)
oldHookReserve += computeHookReserve(((*oldHooks).get())[i]); oldHookReserve += computeHookReserve(((*oldHooks).get())[i]);