Explorar o código

Update client/windows/CCastleInterface.cpp

Co-authored-by: Ivan Savenko <[email protected]>
Laserlicht hai 7 meses
pai
achega
d983d54cc0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/windows/CCastleInterface.cpp

+ 1 - 1
client/windows/CCastleInterface.cpp

@@ -399,7 +399,7 @@ void CHeroGSlot::gesture(bool on, const Point & initialPosition, const Point & f
 		std::vector<std::shared_ptr<CComponent>> resComps;
 		for(TResources::nziterator i(upgradableSlots.totalCosts); i.valid(); i++)
 			resComps.push_back(std::make_shared<CComponent>(ComponentType::RESOURCE, i->resType, i->resVal));
-		if(!resComps.size())
+		if(resComps.empty())
 			resComps.push_back(std::make_shared<CComponent>(ComponentType::RESOURCE, static_cast<GameResID>(GameResID::GOLD), 0)); // add at least gold, when there are no costs
 		resComps.back()->newLine = true;
 		for(auto & upgradeInfo : upgradableSlots.upgradeInfos)