diff options
author | Mattes D <github@xoft.cz> | 2014-11-04 15:45:08 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-04 15:45:08 +0100 |
commit | 6201b3602c2f82fd9de68404a9e742c9cf3c6554 (patch) | |
tree | e086038a40a07eba6be7a10a18f9cc95527fc729 /src/Bindings/LuaState.h | |
parent | Moved the chrono include into Globals. (diff) | |
parent | WebAdmin: Fixed login template destination address. (diff) | |
download | cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.tar cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.tar.gz cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.tar.bz2 cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.tar.lz cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.tar.xz cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.tar.zst cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.zip |
Diffstat (limited to 'src/Bindings/LuaState.h')
-rw-r--r-- | src/Bindings/LuaState.h | 6 |
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...); } |