From 78a93db9186748c8db1d9c41837e26d554e86483 Mon Sep 17 00:00:00 2001 From: natural-law Date: Thu, 21 Oct 2010 02:29:09 +0000 Subject: [PATCH] issue #182 --- cocos2dx/platform/uphone/CCXFileUtils_uphone.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cocos2dx/platform/uphone/CCXFileUtils_uphone.cpp b/cocos2dx/platform/uphone/CCXFileUtils_uphone.cpp index 220ca02be2..8dc096eb7c 100644 --- a/cocos2dx/platform/uphone/CCXFileUtils_uphone.cpp +++ b/cocos2dx/platform/uphone/CCXFileUtils_uphone.cpp @@ -330,8 +330,7 @@ void CCFileUtils::setResourceInfo(const T_ResourceInfo ResInfo[], int nCount) // second, insert the pairs for (int i = 0; i < nCount; ++i) { - std::string name = (ResInfo[i]).ResName; - std::string key = CCFileUtils::fullPathFromRelativePath(name.c_str()); + std::string key = CCFileUtils::fullPathFromRelativePath((ResInfo[i]).ResName); int nResID = (ResInfo[i]).nResID; s_ResMap.insert(ResourceMap::value_type(key, nResID));