aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-19 02:02:50 +0200
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-19 02:02:50 +0200
commit57fcfb2b0d90f14b89f9844c8b59bcaa7bb86b85 (patch)
treeb07a066266d6f8b2e0e2982b8a3289c1ca9bfc42
parenta99b7e6e050c40d95d788d2dec56bf3b56c5844f (diff)
downloadminetest-57fcfb2b0d90f14b89f9844c8b59bcaa7bb86b85.tar.gz
minetest-57fcfb2b0d90f14b89f9844c8b59bcaa7bb86b85.tar.bz2
minetest-57fcfb2b0d90f14b89f9844c8b59bcaa7bb86b85.zip
* initialize liquid_kind properly so compiler does not bitch about it
-rw-r--r--src/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index cf8692bff..aa064637f 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1575,7 +1575,7 @@ void Map::transformLiquids(core::map<v3s16, MapBlock*> & modified_blocks)
Collect information about current node
*/
s8 liquid_level = -1;
- u8 liquid_kind;
+ u8 liquid_kind = CONTENT_IGNORE;
LiquidType liquid_type = content_features(n0.d).liquid_type;
switch (liquid_type) {
case LIQUID_SOURCE: