diff --git a/src/map.cpp b/src/map.cpp
index 8d79ae3669b924c69e9fc95b56feec08000ad82d..c258d157b79ba3115e6eb6e403cc83fdcf589f78 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -27,6 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "porting.h"
 #include "mineral.h"
 #include "noise.h"
+#include "serverobject.h"
 
 /*
 	Map