2
0
mirror of https://github.com/rehlds/reapi.git synced 2025-01-14 15:48:03 +03:00

Fix duplicate errors

This commit is contained in:
s1lent 2019-07-29 22:39:01 +07:00
parent 2e4ef61e9e
commit 89e1730a79
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -210,7 +210,7 @@ NOINLINE R DLLEXPORT _callForward(const hook_t* hook, original_t original, f_arg
{
auto ret = g_amxxapi.ExecuteForward(fwd->GetIndex(), std::forward<f_args &&>(args)...);
if (likely(ret == HC_CONTINUE)) {
if (unlikely(ret != HC_SUPERCEDE && ret != HC_BREAK)) {
continue;
}