mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixes bug with get_msg_arg_type
This commit is contained in:
parent
e6fc5904b5
commit
c6813d1f18
@ -279,6 +279,7 @@ void MessageEnd(void)
|
||||
} else if (inhook) {
|
||||
mres = MF_ExecuteForward(msgHooks[msgType], msgType, msgDest, ENTINDEX(msgpEntity));
|
||||
inhook = false;
|
||||
msgCount = 0;
|
||||
if (mres & 1)
|
||||
RETURN_META(MRES_SUPERCEDE);
|
||||
MESSAGE_BEGIN(msgDest, msgType, msgOrigin, msgpEntity);
|
||||
@ -347,7 +348,7 @@ static cell AMX_NATIVE_CALL get_msg_argtype(AMX *amx, cell *params)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return Msg[argn]->Type();
|
||||
return Msg[argn]->type;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL get_msg_arg_int(AMX *amx, cell *params)
|
||||
|
Loading…
Reference in New Issue
Block a user