Fixed a few potential bugs, and set_msg_arg* no longer accepts type changes

This commit is contained in:
David Anderson
2005-07-23 20:16:29 +00:00
parent 9e194394c3
commit 842813dcbb
4 changed files with 13 additions and 17 deletions

View File

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