summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings_World.cpp
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_World.cpp
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_World.cpp')
-rw-r--r--src/Bindings/ManualBindings_World.cpp22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/Bindings/ManualBindings_World.cpp b/src/Bindings/ManualBindings_World.cpp
index 59dde9a93..e2902b81a 100644
--- a/src/Bindings/ManualBindings_World.cpp
+++ b/src/Bindings/ManualBindings_World.cpp
@@ -129,7 +129,9 @@ static int tolua_cWorld_GetBlockInfo(lua_State * tolua_S)
// Get params:
cWorld * Self = nullptr;
- int BlockX, BlockY, BlockZ;
+ int BlockX = 0;
+ int BlockY = 0;
+ int BlockZ = 0;
L.GetStackValues(1, Self, BlockX, BlockY, BlockZ);
if (Self == nullptr)
{
@@ -176,7 +178,9 @@ static int tolua_cWorld_GetBlockTypeMeta(lua_State * tolua_S)
// Get params:
cWorld * Self = nullptr;
- int BlockX, BlockY, BlockZ;
+ int BlockX = 0;
+ int BlockY = 0;
+ int BlockZ = 0;
L.GetStackValues(1, Self, BlockX, BlockY, BlockZ);
if (Self == nullptr)
{
@@ -220,7 +224,9 @@ static int tolua_cWorld_GetSignLines(lua_State * tolua_S)
// Get params:
cWorld * Self = nullptr;
- int BlockX, BlockY, BlockZ;
+ int BlockX = 0;
+ int BlockY = 0;
+ int BlockZ = 0;
L.GetStackValues(1, Self, BlockX, BlockY, BlockZ);
if (Self == nullptr)
{
@@ -267,7 +273,8 @@ static int tolua_cWorld_PrepareChunk(lua_State * tolua_S)
// Read the params:
cWorld * world = nullptr;
- int chunkX = 0, chunkZ = 0;
+ int chunkX = 0;
+ int chunkZ = 0;
L.GetStackValues(1, world, chunkX, chunkZ);
if (world == nullptr)
{
@@ -401,7 +408,9 @@ static int tolua_cWorld_SetSignLines(lua_State * tolua_S)
// Get params:
cWorld * Self = nullptr;
- int BlockX, BlockY, BlockZ;
+ int BlockX = 0;
+ int BlockY = 0;
+ int BlockZ = 0;
AString Line1, Line2, Line3, Line4;
L.GetStackValues(1, Self, BlockX, BlockY, BlockZ, Line1, Line2, Line3, Line4);
if (Self == nullptr)
@@ -518,7 +527,8 @@ static int tolua_cWorld_TryGetHeight(lua_State * tolua_S)
// Get params:
cWorld * self = nullptr;
- int BlockX, BlockZ;
+ int BlockX = 0;
+ int BlockZ = 0;
L.GetStackValues(1, self, BlockX, BlockZ);
if (self == nullptr)
{