diff --git a/src/map.cpp b/src/map.cpp
index 33f40f064a30d6dfc200650d8f36048626500fcd..f5b63d5af5a06532d029a34f55f3f33e9e1d050a 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1641,7 +1641,7 @@ MapBlock * ServerMap::emergeBlock(
 	if(rand() % 4 == 0)
 		low_block_is_empty = true;*/
 	
-	s32 ued = 4;
+	const s32 ued = 4;
 	bool underground_emptiness[ued*ued*ued];
 	for(s32 i=0; i<ued*ued*ued; i++)
 	{