This commit is contained in:
natural-law 2010-10-21 02:29:09 +00:00
parent 1f8442cc05
commit 78a93db918
1 changed files with 1 additions and 2 deletions

View File

@ -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));