fixed crash bug
This commit is contained in:
parent
d9b768e2cf
commit
727c798892
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user