1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

convert to vector

This commit is contained in:
Laserlicht
2025-09-16 22:58:05 +02:00
parent ee5ff7eeb1
commit 5a8f75f11d
5 changed files with 33 additions and 31 deletions

View File

@@ -323,7 +323,7 @@ TResources ResourceManager::freeResources() const
myRes -= reservedResources(); //subtract the value of reserved goals
for (auto & val : myRes)
vstd::amax(val.second, 0); //never negative
vstd::amax(val, 0); //never negative
return myRes;
}