浏览代码

Aplly some fix for merge and explicitly specify type for std::max

Arseniy Shestakov 9 年之前
父节点
当前提交
a13aec4fd7
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      config/spells/ability.json
  2. 1 1
      lib/mapObjects/ObjectTemplate.cpp

+ 1 - 1
config/spells/ability.json

@@ -35,7 +35,7 @@
 						"duration" : [
 						    "UNITL_BEING_ATTACKED",
 						    "N_TURNS"
-						]}
+						]
 					}
 				}
 			}

+ 1 - 1
lib/mapObjects/ObjectTemplate.cpp

@@ -262,7 +262,7 @@ ui32 ObjectTemplate::getWidth() const
 	ui32 ret = 0;
 	for (auto row : usedTiles)
 	{
-		ret = std::max(ret, row.size());
+		ret = std::max<ui32>(ret, row.size());
 	}
 	return ret;
 }