mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Aplly some fix for merge and explicitly specify type for std::max
This commit is contained in:
parent
5f23091770
commit
a13aec4fd7
@ -35,7 +35,7 @@
|
|||||||
"duration" : [
|
"duration" : [
|
||||||
"UNITL_BEING_ATTACKED",
|
"UNITL_BEING_ATTACKED",
|
||||||
"N_TURNS"
|
"N_TURNS"
|
||||||
]}
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -262,7 +262,7 @@ ui32 ObjectTemplate::getWidth() const
|
|||||||
ui32 ret = 0;
|
ui32 ret = 0;
|
||||||
for (auto row : usedTiles)
|
for (auto row : usedTiles)
|
||||||
{
|
{
|
||||||
ret = std::max(ret, row.size());
|
ret = std::max<ui32>(ret, row.size());
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user