Damnit, bail
This commit is contained in:
parent
3efa25a5fb
commit
14c3930b3d
@ -470,7 +470,7 @@ static cell AMX_NATIVE_CALL register_forward(AMX *amx, cell *params)
|
||||
int func = params[1];
|
||||
// You originally had both post coming from params[2] AND the function name. I've moved post to 3.
|
||||
int post = params[3];
|
||||
if (func > FM_AllowLagCompensation || func < 1)
|
||||
if (func >= FM_LAST_DONT_USE_ME || func < 1)
|
||||
{
|
||||
MF_RaiseAmxError(amx, AMX_ERR_NATIVE);
|
||||
return 0;
|
||||
|
@ -13,6 +13,7 @@
|
||||
#define FMRES_OVERRIDE 3
|
||||
|
||||
enum {
|
||||
FM_FIRST_DONT_USE_ME = 0,
|
||||
FM_PrecacheModel = 1, // done
|
||||
FM_PrecacheSound, // done
|
||||
FM_SetModel, // done
|
||||
@ -149,6 +150,7 @@ enum {
|
||||
FM_CreateInstancedBaselines, // done
|
||||
FM_AllowLagCompensation, // done
|
||||
FM_AlertMessage,
|
||||
FM_LAST_DONT_USE_ME,
|
||||
};
|
||||
|
||||
extern CVector<int> Engine[];
|
||||
|
Loading…
Reference in New Issue
Block a user