diff options
Diffstat (limited to 'Editor/EditorMain.cpp')
-rw-r--r-- | Editor/EditorMain.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Editor/EditorMain.cpp b/Editor/EditorMain.cpp index 7ca90ad..7686fa5 100644 --- a/Editor/EditorMain.cpp +++ b/Editor/EditorMain.cpp @@ -29,9 +29,8 @@ void OnRegisterNativeClass(LuaBind::State& state, int cls, std::string clsName, lua_setfield(state, cls, "_type");
}
-void InitLuaState()
+void InitLuaState(LuaBind::VM& vm)
{
- LuaBind::VM vm;
vm.Setup();
vm.OpenLibs();
@@ -59,7 +58,8 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) {
WindowUtil::RegisterClasses();
- InitLuaState();
+ LuaBind::VM vm;
+ InitLuaState(vm);
return 0;
}
\ No newline at end of file |