From 3e169ef2f58693ab6518e8c4394edc16d2f64e59 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Thu, 31 Aug 2023 01:07:39 +0300 Subject: [PATCH] Fix visiting of markets --- lib/mapObjects/IMarket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mapObjects/IMarket.cpp b/lib/mapObjects/IMarket.cpp index bf38c954f..4bbccc872 100644 --- a/lib/mapObjects/IMarket.cpp +++ b/lib/mapObjects/IMarket.cpp @@ -169,7 +169,7 @@ IMarket::IMarket() std::vector IMarket::availableModes() const { std::vector ret; - for (EMarketMode i = static_cast(0); i < EMarketMode::MARTKET_AFTER_LAST_PLACEHOLDER; vstd::next(i, 1)) + for (EMarketMode i = static_cast(0); i < EMarketMode::MARTKET_AFTER_LAST_PLACEHOLDER; i = vstd::next(i, 1)) if(allowsTrade(i)) ret.push_back(i);