summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-31 19:25:31 +0100
committerMattes D <github@xoft.cz>2014-10-31 19:25:45 +0100
commit2b7f34515a837ea02ebd19be3326b490f33ad012 (patch)
tree852442da69c9dd954a007c4f253c4dd9016a579a /src
parentFixed missing CS lock in cChunkMap::WakeUpSimulatorsInArea(). (diff)
downloadcuberite-2b7f34515a837ea02ebd19be3326b490f33ad012.tar
cuberite-2b7f34515a837ea02ebd19be3326b490f33ad012.tar.gz
cuberite-2b7f34515a837ea02ebd19be3326b490f33ad012.tar.bz2
cuberite-2b7f34515a837ea02ebd19be3326b490f33ad012.tar.lz
cuberite-2b7f34515a837ea02ebd19be3326b490f33ad012.tar.xz
cuberite-2b7f34515a837ea02ebd19be3326b490f33ad012.tar.zst
cuberite-2b7f34515a837ea02ebd19be3326b490f33ad012.zip
Diffstat (limited to 'src')
-rw-r--r--src/Bindings/LuaState.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h
index d1e9923b4..c13e36188 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -247,7 +247,11 @@ public:
template <typename FnT, typename... Args>
bool Call(const FnT & a_Function, Args &&... args)
{
- PushFunction(a_Function);
+ if (!PushFunction(a_Function))
+ {
+ // Pushing the function failed
+ return false;
+ }
return PushCallPop(args...);
}