diff --git a/src/map.cpp b/src/map.cpp
index 2845f3a67de7ed93228982da25769242ee9f5f2e..0e9b121d76f9a3fc04b9f3ac6cc93183edcd706f 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1651,7 +1651,7 @@ void Map::transformLiquids(core::map<v3s16, MapBlock*> & modified_blocks)
 			Collect information about current node
 		 */
 		s8 liquid_level = -1;
-		u8 liquid_kind = CONTENT_IGNORE;
+		content_t liquid_kind = CONTENT_IGNORE;
 		LiquidType liquid_type = nodemgr->get(n0).liquid_type;
 		switch (liquid_type) {
 			case LIQUID_SOURCE: