* initialize liquid_kind properly so compiler does not bitch about it
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
Tue, 19 Jul 2011 00:02:50 +0000 (02:02 +0200)
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
Tue, 19 Jul 2011 00:02:50 +0000 (02:02 +0200)
src/map.cpp

index cf8692bff9ae4a5bcb2bdaa1a2338e4cee06aa4f..aa064637f995b4b7bf77544aa4ae075157c6d298 100644 (file)
@@ -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: