Frank Zago 13 lat temu
rodzic
commit
ee103c7bcd
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      server/CGameHandler.cpp

+ 2 - 1
server/CGameHandler.cpp

@@ -41,6 +41,7 @@
 #include <boost/thread/xtime.hpp>
 #endif
 #include <boost/random/linear_congruential.hpp>
+#include <boost/range/algorithm/random_shuffle.hpp>
 extern bool end2;
 #ifdef min
 #undef min
@@ -3926,7 +3927,7 @@ void CGameHandler::handleSpellCasting( int spellID, int spellLvl, BattleHex dest
 				if(hex.getX() > 2 && hex.getX() < 14 && !battleGetStackByPos(hex, false) & !battleGetObstacleOnPos(hex, false))
 					availableTiles.push_back(hex);
 			}
-			range::random_shuffle(availableTiles);
+			boost::range::random_shuffle(availableTiles);
 
 			const int patchesForSkill[] = {4, 4, 6, 8};
 			const int patchesToPut = std::min<int>(patchesForSkill[spellLvl], availableTiles.size());