mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Fixes bug with get_msg_arg_type
This commit is contained in:
parent
721f86001e
commit
1b09d4e3fc
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user