Fixed ent bugs from JGHG

Changed MAKE_STRING to ALLOC_STRING
This commit is contained in:
David Anderson
2004-07-06 16:48:20 +00:00
parent 1d555a66f8
commit 221d5b623d
2 changed files with 3 additions and 7 deletions

View File

@ -3,12 +3,8 @@
int AmxStringToEngine(AMX *amx, cell param, int &len)
{
char *szString = MF_GetAmxString(amx, param, 0, &len);
char *szCopy = new char[len+1];
memset(szCopy, 0, len+1);
strcpy(szCopy, szString);
return MAKE_STRING(szCopy);
return ALLOC_STRING(szString);
}
void OnAmxxAttach()