fixed crash bug

This commit is contained in:
Pavol Marko 2004-08-29 19:49:08 +00:00
parent d9b768e2cf
commit 727c798892

View File

@ -787,7 +787,7 @@ char * CLangMngr::FormatAmxString(AMX *amx, cell *params, int parm, int &len)
char *ptr = format+1; char *ptr = format+1;
if (*src != '%') if (*src != '%')
{ {
while (!isalpha(*ptr++ = *src++)) while (*src != 0 && !isalpha(*ptr++ = *src++))
/*nothing*/; /*nothing*/;
--src; --src;
*ptr = 0; *ptr = 0;