diff --git a/cocos2dx/platform/linux/CCFileUtils.cpp b/cocos2dx/platform/linux/CCFileUtils.cpp index 2338dd563b..35f7a7cc74 100644 --- a/cocos2dx/platform/linux/CCFileUtils.cpp +++ b/cocos2dx/platform/linux/CCFileUtils.cpp @@ -194,7 +194,7 @@ void CCFileUtils::setResourceDirectory(const char* pszResourceDirectory) { m_obDirectory.append("/"); } - m_pSearchPathArray->insertObject(CCString::create(m_obDirectory.c_str()), 0); + m_searchPathArray.insert(m_searchPathArray.begin(), m_obDirectory); } string CCFileUtils::getWriteablePath()