diff options
author | Mattes D <github@xoft.cz> | 2015-06-01 15:02:42 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-06-01 15:02:42 +0200 |
commit | a54fa15bc6326d5482fae27b5fbcd42c8a34427a (patch) | |
tree | 5b2bb45d000c25554b45cdd1aeea59a96734534a /src/Bindings | |
parent | Merge pull request #2178 from jammet/patch-7 (diff) | |
parent | Made cLightingThread own its callbacks (diff) | |
download | cuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.tar cuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.tar.gz cuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.tar.bz2 cuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.tar.lz cuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.tar.xz cuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.tar.zst cuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/ManualBindings_World.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Bindings/ManualBindings_World.cpp b/src/Bindings/ManualBindings_World.cpp index 8d0288556..ddbebce78 100644 --- a/src/Bindings/ManualBindings_World.cpp +++ b/src/Bindings/ManualBindings_World.cpp @@ -303,10 +303,9 @@ static int tolua_cWorld_PrepareChunk(lua_State * tolua_S) cLuaState m_LuaState; cLuaState::cRef m_Callback; }; - cCallback * callback = new cCallback(tolua_S); // Call the chunk preparation: - world->PrepareChunk(chunkX, chunkZ, callback); + world->PrepareChunk(chunkX, chunkZ, cpp14::make_unique<cCallback>(tolua_S)); return 0; } |