Merge pull request #291 from alliedmodders/fix/native-overflow

Fix crash when dynamic native is executed with the max number of params
This commit is contained in:
Vincent Herbet 2015-09-05 18:24:51 +02:00
commit eaa330d745

View File

@ -35,7 +35,7 @@ bool g_Initialized = false;
/* Stack stuff */
regnative *g_pCurNative = NULL;
AMX *g_pCaller = NULL;
cell g_Params[CALLFUNC_MAXPARAMS];
cell g_Params[CALLFUNC_MAXPARAMS + 1];
int g_CurError = AMX_ERR_NONE;
int amxx_DynaCallback(int idx, AMX *amx, cell *params)