all: fix infinite loop in LoadFilePak when map can't be found

This commit is contained in:
Eric Wasylishen 2016-02-25 14:08:00 -07:00
parent 1a436d8f13
commit e2dbd45b4f
1 changed files with 1 additions and 1 deletions

View File

@ -517,7 +517,7 @@ LoadFilePak(char *filename, void *destptr)
if (!file)
{
e = filename + strlen(filename);
for(;;)
for( ; e>filename ; )
{
while(e > filename)
if (*--e == '/')