issue #2404:replace LuaEngine::defaultEngine() with LuaEngine::getInstance()

This commit is contained in:
samuele3hu 2013-07-25 20:40:44 +08:00
parent 456a26d7ab
commit 6854bd6b19
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ bool AppDelegate::applicationDidFinishLaunching()
pDirector->setAnimationInterval(1.0 / 60);
// register lua engine
LuaEngine* pEngine = LuaEngine::defaultEngine();
LuaEngine* pEngine = LuaEngine::getInstance();
ScriptEngineManager::getInstance()->setScriptEngine(pEngine);
std::string path = FileUtils::getInstance()->fullPathForFilename("hello.lua");