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

Removed vstd::advance. Added vstd::next to handle similar cases.

This commit is contained in:
Ivan Savenko
2023-04-28 00:29:16 +03:00
parent 832e56e005
commit a654cc2391
10 changed files with 14 additions and 18 deletions

View File

@@ -149,7 +149,7 @@ void ResourceSet::nziterator::advance()
{
do
{
vstd::advance(cur.resType, +1);
++cur.resType;
} while(cur.resType < GameConstants::RESOURCE_QUANTITY && !(cur.resVal=rs[cur.resType]));
if(cur.resType >= GameConstants::RESOURCE_QUANTITY)