fix hook_pos bug

This commit is contained in:
Richard Holland
2023-01-04 10:44:25 +00:00
parent 3075a01caa
commit e0533cae8d

View File

@@ -973,6 +973,8 @@ executeHookChain(
for (auto const& hook : hooks)
{
hook_no++;
ripple::STObject const* hookObj = dynamic_cast<ripple::STObject const*>(&hook);
if (!hookObj->isFieldPresent(sfHookHash)) // skip blanks
@@ -1047,7 +1049,7 @@ executeHookChain(
false,
strong,
(strong ? 0 : 1UL), // 0 = strong, 1 = weak
hook_no,
hook_no - 1,
provisionalMeta));
executedHookCount_++;
@@ -1078,7 +1080,6 @@ executeHookChain(
overrides[k] = v;
}
hook_no++;
}
return tesSUCCESS;
}