summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-07 21:28:52 +0100
committermadmaxoft <github@xoft.cz>2014-03-07 21:28:52 +0100
commitffdf5f2022cbeb568cb6ff28448aad98876334b1 (patch)
treee2cf24bab59db43a022400c514da6b579914ff88 /src/Bindings/ManualBindings.cpp
parentMerge pull request #765 from worktycho/fastmath (diff)
downloadcuberite-ffdf5f2022cbeb568cb6ff28448aad98876334b1.tar
cuberite-ffdf5f2022cbeb568cb6ff28448aad98876334b1.tar.gz
cuberite-ffdf5f2022cbeb568cb6ff28448aad98876334b1.tar.bz2
cuberite-ffdf5f2022cbeb568cb6ff28448aad98876334b1.tar.lz
cuberite-ffdf5f2022cbeb568cb6ff28448aad98876334b1.tar.xz
cuberite-ffdf5f2022cbeb568cb6ff28448aad98876334b1.tar.zst
cuberite-ffdf5f2022cbeb568cb6ff28448aad98876334b1.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/ManualBindings.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index 05dc9717e..a5247bbe6 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -2563,9 +2563,13 @@ static int tolua_cBlockArea_SaveToSchematicString(lua_State * tolua_S)
return 0;
}
- AString Data = cSchematicFileSerializer::SaveToSchematicString(*self);
- L.Push(Data);
- return 1;
+ AString Data;
+ if (cSchematicFileSerializer::SaveToSchematicString(*self, Data))
+ {
+ L.Push(Data);
+ return 1;
+ }
+ return 0;
}