From 5c8c925e8a20ea3c2f6ad7c1700102e94aebd29a Mon Sep 17 00:00:00 2001 From: WPMGPRoSToTeMa Date: Wed, 9 Dec 2015 21:38:08 +0300 Subject: [PATCH] Hamsandwich: fix HAM_OVERRIDE in post hooks (bug 6443) --- modules/hamsandwich/hook_callbacks.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/hamsandwich/hook_callbacks.cpp b/modules/hamsandwich/hook_callbacks.cpp index c0cbc096..3a1a13cd 100644 --- a/modules/hamsandwich/hook_callbacks.cpp +++ b/modules/hamsandwich/hook_callbacks.cpp @@ -108,11 +108,15 @@ extern bool gDoForwards; { \ if (hook->post.at(i)->state == FSTATE_OK) \ { \ - MF_ExecuteForward(hook->post.at(i)->id, iThis + thisresult = MF_ExecuteForward(hook->post.at(i)->id, iThis #define POST_END() \ ); \ } \ + if (thisresult > result) \ + { \ + result=thisresult; \ + } \ } \ } \ ReturnStatus.pop();