File fix-build.patch of Package knightsgame
diff --git a/src/engine/impl/monster_support.hpp b/src/engine/impl/monster_support.hpp
index 7568a69..77d3c37 100644
--- a/src/engine/impl/monster_support.hpp
+++ b/src/engine/impl/monster_support.hpp
@@ -120,8 +120,8 @@ std::pair<MapDirection,bool> ChooseDirection(shared_ptr<Entity> ent, const MapCo
// If 50% chance, then swap order of x and y
if (g_rng.getBool(0.5f)) {
- swap(d[0],d[1]);
- swap(basedir[0],basedir[1]);
+ std::swap(d[0],d[1]);
+ std::swap(basedir[0],basedir[1]);
}
// Build up a list of directions
diff --git a/src/shared/impl/lua_func_wrapper.cpp b/src/shared/impl/lua_func_wrapper.cpp
index 0ff2885..76ffd7b 100644
--- a/src/shared/impl/lua_func_wrapper.cpp
+++ b/src/shared/impl/lua_func_wrapper.cpp
@@ -21,6 +21,7 @@
*
*/
+#include <map>
#include "misc.hpp"
#include "lua_func_wrapper.hpp"