mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fix visiting of markets
This commit is contained in:
parent
f6a4a1ae0c
commit
3e169ef2f5
@ -169,7 +169,7 @@ IMarket::IMarket()
|
|||||||
std::vector<EMarketMode> IMarket::availableModes() const
|
std::vector<EMarketMode> IMarket::availableModes() const
|
||||||
{
|
{
|
||||||
std::vector<EMarketMode> ret;
|
std::vector<EMarketMode> ret;
|
||||||
for (EMarketMode i = static_cast<EMarketMode>(0); i < EMarketMode::MARTKET_AFTER_LAST_PLACEHOLDER; vstd::next(i, 1))
|
for (EMarketMode i = static_cast<EMarketMode>(0); i < EMarketMode::MARTKET_AFTER_LAST_PLACEHOLDER; i = vstd::next(i, 1))
|
||||||
if(allowsTrade(i))
|
if(allowsTrade(i))
|
||||||
ret.push_back(i);
|
ret.push_back(i);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user