From 8f0db67c5fdbc1e7b8759f44b45ad64caf336cb5 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Wed, 11 Sep 2019 01:46:14 -0400 Subject: World system now has a pointer to the current world, and worlds created in Lua are returned to Lua as pointers --- src/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script.cpp') diff --git a/src/script.cpp b/src/script.cpp index e3aca3e..f52391f 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -90,7 +90,7 @@ void ScriptSystem::scriptExport(void) std::function entitySpawn = [this](sol::table t){ return spawn(t);}; - std::function worldRegister = + std::function worldRegister = [this](sol::object t){ return worldSystem.addWorld(t); }; lua.new_usertype("Position", -- cgit v1.2.3