Browse Source

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

Arseniy Shestakov 9 years ago
parent
commit
a13aec4fd7
2 changed files with 2 additions and 2 deletions
  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;
 }