1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

- Extended cap or removed sign for some values that may potentially overflow

- Fixed #851
This commit is contained in:
DjWarmonger
2012-01-26 16:48:53 +00:00
parent b72a19cdb1
commit 1cbd7e94e4
10 changed files with 37 additions and 27 deletions

View File

@ -16,7 +16,7 @@ bool Res::ResourceSet::nonZero() const
return false;
}
void Res::ResourceSet::amax(const TResource &val)
void Res::ResourceSet::amax(const TResourceCap &val)
{
for(int i = 0; i < size(); i++)
::vstd::amax(at(i), val);