Fixed bug at17117 (Twilight Suzuka)

This commit is contained in:
David Anderson
2005-08-17 17:07:41 +00:00
parent 80e6d31998
commit 1768ae4b23
2 changed files with 58 additions and 30 deletions

View File

@@ -2766,7 +2766,7 @@ static cell AMX_NATIVE_CALL callfunc_push_str(AMX *amx, cell *params)
// copy it to the allocated memory
// we assume it's unpacked
// :NOTE: 4th parameter use_wchar since Small Abstract Machine 2.5.0
amx_SetString(phys_addr, str, 0, 0, 0);
amx_SetStringOld(phys_addr, str, 0, 0);
// push the address and set the reference flag so that memory is released after function call.
g_CallFunc_ParamInfo[g_CallFunc_CurParam].flags = CALLFUNC_FLAG_BYREF;