Merge pull request #317 from WPMGPRoSToTeMa/hamposthookretval

Hamsandwich: fix HAM_OVERRIDE in post hooks (bug 6443)
This commit is contained in:
Vincent Herbet 2015-12-10 19:25:14 +01:00
commit 7cdc72f936

View File

@ -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();