From: divverent Date: Fri, 10 Apr 2009 14:37:23 +0000 (+0000) Subject: fix stupid endless loop X-Git-Tag: xonotic-v0.1.0preview~1718 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4bb49ed5cd51849bd95bdd0bf973e09726edd254;p=xonotic%2Fdarkplaces.git fix stupid endless loop git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8892 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/jpeg.c b/jpeg.c index 70051190..936bc551 100644 --- a/jpeg.c +++ b/jpeg.c @@ -990,6 +990,7 @@ static CompressedImageCacheItem *CompressedImageCache_Find(const char *imagename if(i->maxsize == maxsize) if(!strcmp(i->imagename, imagename)) return i; + i = i->next; } return NULL; }