From fe7d5cbdfbe77b2de63289776b3a1ec0857c4dc8 Mon Sep 17 00:00:00 2001 From: Dhilan007 Date: Thu, 9 Jan 2014 09:46:17 +0800 Subject: [PATCH] update If Construct --- cocos/2d/CCTextureCache.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cocos/2d/CCTextureCache.cpp b/cocos/2d/CCTextureCache.cpp index 73670fdf61..4af449c8bf 100644 --- a/cocos/2d/CCTextureCache.cpp +++ b/cocos/2d/CCTextureCache.cpp @@ -183,9 +183,7 @@ void TextureCache::loadImage() break; } _imageInfoMutex.unlock(); - if(infoSize == 0) - generateImage = true; - else if(pos < infoSize) + if(infoSize == 0 || pos < infoSize) generateImage = true; }