--- a/source/MapDetailPanel.cpp
+++ b/source/MapDetailPanel.cpp
@@ -43,6 +43,7 @@
 #include <set>
 #include <utility>
 #include <vector>
+#include <limits>
 
 using namespace std;
 
--- a/source/PlayerInfo.cpp
+++ b/source/PlayerInfo.cpp
@@ -40,6 +40,7 @@
 #include <algorithm>
 #include <ctime>
 #include <sstream>
+#include <limits>
 
 using namespace std;
 
