From 997011601ef8f349e1d1246819cf449bd3436cfb Mon Sep 17 00:00:00 2001 From: minggo Date: Fri, 6 May 2016 15:58:43 +0800 Subject: [PATCH] revert correct search path --- tools/simulator/libsimulator/lib/runtime/ConfigParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/simulator/libsimulator/lib/runtime/ConfigParser.cpp b/tools/simulator/libsimulator/lib/runtime/ConfigParser.cpp index 2d345dfe8c..4e4fa64850 100644 --- a/tools/simulator/libsimulator/lib/runtime/ConfigParser.cpp +++ b/tools/simulator/libsimulator/lib/runtime/ConfigParser.cpp @@ -43,7 +43,7 @@ void ConfigParser::readConfig(const string &filepath) #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) // revert search path - searchPathArray.erase(searchPathArray.end() - 1); + searchPathArray.erase(searchPathArray.begin()); FileUtils::getInstance()->setSearchPaths(searchPathArray); #endif