浏览代码

Compile fixes.

Frank Zago 16 年之前
父节点
当前提交
e806399246
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      client/CBattleInterface.cpp
  2. 1 1
      hch/CHeroHandler.h

+ 1 - 1
client/CBattleInterface.cpp

@@ -3227,7 +3227,7 @@ CBattleInterface::SiegeHelper::~SiegeHelper()
 std::string CBattleInterface::SiegeHelper::getSiegeName(ui16 what, ui16 additInfo) const
 {
 	char buf[100];
-	itoa(additInfo, buf, 10);
+	SDL_itoa(additInfo, buf, 10);
 	std::string addit(buf);
 	switch(what)
 	{

+ 1 - 1
hch/CHeroHandler.h

@@ -108,7 +108,7 @@ public:
 	};
 	std::vector<SBallisticsLevelInfo> ballistics; //info about ballistics ability per level; [0] - none; [1] - basic; [2] - adv; [3] - expert
 
-	std::vector<std::pair<int, int>> wallPositions[F_NUMBER]; //positions of different pieces of wall <x, y>
+	std::vector<std::pair<int, int> > wallPositions[F_NUMBER]; //positions of different pieces of wall <x, y>
 	void loadWallPositions();
 
 	std::map<int, CObstacleInfo> obstacles; //info about obstacles that may be placed on battlefield