mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed a bug where bad plugins could crash
This commit is contained in:
parent
eaf102d78f
commit
1d6b173e87
@ -161,6 +161,7 @@ CPluginMngr::CPlugin::CPlugin(int i, const char* p,const char* n, char* e, int d
|
|||||||
char file[256];
|
char file[256];
|
||||||
char* path = build_pathname_r(file, sizeof(file)-1, "%s/%s",p,n);
|
char* path = build_pathname_r(file, sizeof(file)-1, "%s/%s",p,n);
|
||||||
code = 0;
|
code = 0;
|
||||||
|
memset(&amx, 0, sizeof(AMX));
|
||||||
int err = load_amxscript(&amx,&code,path,e, d);
|
int err = load_amxscript(&amx,&code,path,e, d);
|
||||||
if ( err == AMX_ERR_NONE )
|
if ( err == AMX_ERR_NONE )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user