diff options
author | Mattes D <github@xoft.cz> | 2016-06-27 20:49:59 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-06-27 20:51:53 +0200 |
commit | bf88312a1664311968736b4ba7ce1458c8b0954e (patch) | |
tree | 59bae2de637b5f3c629db8e55fb44a3106266709 /src/Bindings/ManualBindings_World.cpp | |
parent | Removed dead code related to callbacks. (diff) | |
download | cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.gz cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.bz2 cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.lz cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.xz cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.zst cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.zip |
Diffstat (limited to 'src/Bindings/ManualBindings_World.cpp')
-rw-r--r-- | src/Bindings/ManualBindings_World.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/ManualBindings_World.cpp b/src/Bindings/ManualBindings_World.cpp index 3f9f5f94d..b3170a636 100644 --- a/src/Bindings/ManualBindings_World.cpp +++ b/src/Bindings/ManualBindings_World.cpp @@ -105,7 +105,7 @@ static int tolua_cWorld_ChunkStay(lua_State * tolua_S) cLuaState::cCallbackPtr onChunkAvailable, onAllChunksAvailable; L.GetStackValues(3, onChunkAvailable, onAllChunksAvailable); // Callbacks may be unassigned at all - as a request to load / generate chunks - ChunkStay->Enable(*World->GetChunkMap(), onChunkAvailable, onAllChunksAvailable); + ChunkStay->Enable(*World->GetChunkMap(), std::move(onChunkAvailable), std::move(onAllChunksAvailable)); return 0; } @@ -484,7 +484,7 @@ static int tolua_cWorld_QueueTask(lua_State * tolua_S) return 0; } cWorld * World; - auto Task = std::make_shared<cLuaState::cCallback>(); + cLuaState::cCallbackSharedPtr Task; if (!L.GetStackValues(1, World, Task)) { return cManualBindings::lua_do_error(tolua_S, "Error in function call '#funcname#': Cannot read parameters"); |