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:
@ -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);
|
||||
|
Reference in New Issue
Block a user