mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
fix hook_pos bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user