Fixes bug with get_msg_arg_type

This commit is contained in:
David Anderson 2004-06-29 16:53:49 +00:00
parent 721f86001e
commit 1b09d4e3fc

View File

@ -279,15 +279,18 @@ void MessageEnd(void)
} else if (inhook) {
mres = MF_ExecuteForward(msgHooks[msgType], msgType, msgDest, ENTINDEX(msgpEntity));
inhook = false;
msgCount = 0;
if (mres & 1)
{
msgCount = 0;
RETURN_META(MRES_SUPERCEDE);
}
MESSAGE_BEGIN(msgDest, msgType, msgOrigin, msgpEntity);
for (i=0; i<msgCount; i++) {
Msg[i]->Send();
Msg[i]->Reset();
}
MESSAGE_END();
msgCount = 0;
RETURN_META(MRES_SUPERCEDE);
}