From dd5201c29e4a9a889a70c81fa7a82bf0c8615d65 Mon Sep 17 00:00:00 2001 From: Julian Laubstein Date: Fri, 14 Aug 2015 22:19:15 +0200 Subject: Some warning fixes --- src/Bindings/ManualBindings_World.cpp | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'src/Bindings/ManualBindings_World.cpp') 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) { -- cgit v1.2.3