quick fixes before adding debugger again

This commit is contained in:
David Anderson
2005-07-25 06:48:54 +00:00
parent 4609cb409b
commit 09a08fd2f6
5 changed files with 16 additions and 10 deletions

View File

@@ -205,7 +205,7 @@ int load_amxscript(AMX *amx, void **program, const char *filename, char error[64
delete[] np;
delete[] rt;
char *prg = (char *)(*program);
delete[] *prg;
delete[] prg;
(*program) = amx->base;
if ( *program == 0 ){
strcpy(error,"Failed to allocate memory");
@@ -358,7 +358,7 @@ int unload_amxscript(AMX* amx, void** program)
CList<CScript,AMX*>::iterator a = g_loadedscripts.find( amx );
if ( a ) a.remove();
char *prg = (char *)*program;
delete[] *prg;
delete[] prg;
*program = 0;
return AMX_ERR_NONE;
}