summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-08-18 08:49:39 +0200
committerMattes D <github@xoft.cz>2015-08-18 08:49:39 +0200
commit5ea1b9cee17d7fb43a2e118b880cbf74cd9772d7 (patch)
treeb14ae581e0680c303466781cc356c2399a6c7990 /src/Bindings/ManualBindings.h
parentMerge pull request #2436 from cuberite/UpdateCompileScript (diff)
parentSome warning fixes (diff)
downloadcuberite-5ea1b9cee17d7fb43a2e118b880cbf74cd9772d7.tar
cuberite-5ea1b9cee17d7fb43a2e118b880cbf74cd9772d7.tar.gz
cuberite-5ea1b9cee17d7fb43a2e118b880cbf74cd9772d7.tar.bz2
cuberite-5ea1b9cee17d7fb43a2e118b880cbf74cd9772d7.tar.lz
cuberite-5ea1b9cee17d7fb43a2e118b880cbf74cd9772d7.tar.xz
cuberite-5ea1b9cee17d7fb43a2e118b880cbf74cd9772d7.tar.zst
cuberite-5ea1b9cee17d7fb43a2e118b880cbf74cd9772d7.zip
Diffstat (limited to 'src/Bindings/ManualBindings.h')
-rw-r--r--src/Bindings/ManualBindings.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Bindings/ManualBindings.h b/src/Bindings/ManualBindings.h
index f8c9b96de..38f7ac5f1 100644
--- a/src/Bindings/ManualBindings.h
+++ b/src/Bindings/ManualBindings.h
@@ -263,7 +263,9 @@ public:
// Get parameters:
Ty1 * Self = nullptr;
- int BlockX, BlockY, BlockZ;
+ int BlockX = 0;
+ int BlockY = 0;
+ int BlockZ = 0;
cLuaState::cRef FnRef;
L.GetStackValues(1, Self, BlockX, BlockY, BlockZ, FnRef);
if (Self == nullptr)
@@ -327,7 +329,8 @@ public:
// Get parameters:
Ty1 * Self = nullptr;
- int ChunkX, ChunkZ;
+ int ChunkX = 0;
+ int ChunkZ = 0;
cLuaState::cRef FnRef;
L.GetStackValues(1, Self, ChunkX, ChunkZ, FnRef);
if (Self == nullptr)