]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix stupid endless loop
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Apr 2009 14:37:23 +0000 (14:37 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Apr 2009 14:37:23 +0000 (14:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8892 d7cf8633-e32d-0410-b094-e92efae38249

jpeg.c

diff --git a/jpeg.c b/jpeg.c
index 700511905393526c4fdb563db80d0ff47b86a697..936bc5517aa379d67ac7b474b4d37c103d589499 100644 (file)
--- 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;
 }