diff --git a/extensions/scripting/lua-bindings/manual/Cocos2dxLuaLoader.cpp b/extensions/scripting/lua-bindings/manual/Cocos2dxLuaLoader.cpp index 69a9a73d71..e0c9910a29 100644 --- a/extensions/scripting/lua-bindings/manual/Cocos2dxLuaLoader.cpp +++ b/extensions/scripting/lua-bindings/manual/Cocos2dxLuaLoader.cpp @@ -53,10 +53,9 @@ extern "C" { int cocos2dx_lua_loader(lua_State *L) { - auto path = adxelua_tosv(L, 1); + auto relativePath = adxelua_tostr(L, 1); // convert any '.' to '/' - auto relativePath = adxelua_tostr(L, 1); size_t pos = relativePath.find_first_of('.'); while (pos != std::string::npos) {