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:
commit
eaa330d745
|
@ -35,7 +35,7 @@ bool g_Initialized = false;
|
||||||
/* Stack stuff */
|
/* Stack stuff */
|
||||||
regnative *g_pCurNative = NULL;
|
regnative *g_pCurNative = NULL;
|
||||||
AMX *g_pCaller = NULL;
|
AMX *g_pCaller = NULL;
|
||||||
cell g_Params[CALLFUNC_MAXPARAMS];
|
cell g_Params[CALLFUNC_MAXPARAMS + 1];
|
||||||
int g_CurError = AMX_ERR_NONE;
|
int g_CurError = AMX_ERR_NONE;
|
||||||
|
|
||||||
int amxx_DynaCallback(int idx, AMX *amx, cell *params)
|
int amxx_DynaCallback(int idx, AMX *amx, cell *params)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user