1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

nullkiller2: Replace hasBuiltSomeTradeBuilding() with hasBuiltResourceMarketplace()

This commit is contained in:
Mircea TheHonestCTO
2025-11-18 18:18:35 +01:00
parent 3c7abd988e
commit 1900e03b47
7 changed files with 11 additions and 18 deletions

View File

@@ -20,7 +20,7 @@ bool ResourceTrader::trade(BuildAnalyzer & buildAnalyzer, CCallback & cc, const
// Are those used anywhere? To inspect.
for(const auto * const town : cc.getTownsInfo())
{
if(town->hasBuiltSomeTradeBuilding())
if(town->hasBuiltResourceMarketplace())
{
marketId = town->id;
break;