diff --git a/src/cavegen.cpp b/src/cavegen.cpp
index 51309ad609ae0c58e2ed17a03e6e4c0b0a019273..1c25ce71198d535e30e5d5dc6e9bcd0b1399545b 100644
--- a/src/cavegen.cpp
+++ b/src/cavegen.cpp
@@ -26,7 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "mg_biome.h"
 #include "cavegen.h"
 
-NoiseParams nparams_caveliquids(0, 1, v3f(150.0, 150.0, 150.0), 776, 3, 0.6, 2.0);
+static NoiseParams nparams_caveliquids(0, 1, v3f(150.0, 150.0, 150.0), 776, 3, 0.6, 2.0);
 
 
 ////