summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-08 16:13:45 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-08 16:13:45 +0100
commitc3758112cc25b3f491abeb88c3f1d10b8985362a (patch)
treed22a0004d00a303d7c063f105929b21735a2ef3b /src/Bindings
parentWarnings (diff)
parentMerge pull request #770 from xdot/master (diff)
downloadcuberite-c3758112cc25b3f491abeb88c3f1d10b8985362a.tar
cuberite-c3758112cc25b3f491abeb88c3f1d10b8985362a.tar.gz
cuberite-c3758112cc25b3f491abeb88c3f1d10b8985362a.tar.bz2
cuberite-c3758112cc25b3f491abeb88c3f1d10b8985362a.tar.lz
cuberite-c3758112cc25b3f491abeb88c3f1d10b8985362a.tar.xz
cuberite-c3758112cc25b3f491abeb88c3f1d10b8985362a.tar.zst
cuberite-c3758112cc25b3f491abeb88c3f1d10b8985362a.zip
Diffstat (limited to 'src/Bindings')
-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;
}