Fixed a few potential bugs, and set_msg_arg* no longer accepts type changes
This commit is contained in:
@ -400,7 +400,7 @@ static cell AMX_NATIVE_CALL set_msg_arg_int(AMX *amx, cell *params)
|
||||
return 0;
|
||||
}
|
||||
|
||||
Msg.SetParam(argn, params[2]);
|
||||
Msg.SetParam(argn, params[3]);
|
||||
|
||||
return 1;
|
||||
}
|
||||
@ -428,7 +428,7 @@ static cell AMX_NATIVE_CALL set_msg_arg_float(AMX *amx, cell *params)
|
||||
return 0;
|
||||
}
|
||||
|
||||
REAL fVal = amx_ctof(params[2]);
|
||||
REAL fVal = amx_ctof(params[3]);
|
||||
|
||||
Msg.SetParam(argn, fVal);
|
||||
|
||||
|
Reference in New Issue
Block a user