diff --git a/dlls/fakemeta/forward.cpp b/dlls/fakemeta/forward.cpp index b5c4cf2a..350dba0b 100755 --- a/dlls/fakemeta/forward.cpp +++ b/dlls/fakemeta/forward.cpp @@ -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; diff --git a/dlls/fakemeta/forward.h b/dlls/fakemeta/forward.h index 5dbbc2f2..6362024e 100755 --- a/dlls/fakemeta/forward.h +++ b/dlls/fakemeta/forward.h @@ -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 Engine[];