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

Remove int <=> Identifier comparisons

This commit is contained in:
Ivan Savenko
2023-11-02 17:12:58 +02:00
parent 885dce0c27
commit 3634fb2158
12 changed files with 28 additions and 28 deletions

View File

@@ -126,7 +126,7 @@ void CGMine::initObj(CRandomGenerator & rand)
bool CGMine::isAbandoned() const
{
return (getObjTypeIndex() >= 7);
return subID.getNum() >= 7;
}
ResourceSet CGMine::dailyIncome() const
@@ -467,7 +467,7 @@ void CGTeleport::addToChannel(std::map<TeleportChannelID, std::shared_ptr<Telepo
}
}
TeleportChannelID CGMonolith::findMeChannel(const std::vector<Obj> & IDs, int SubID) const
TeleportChannelID CGMonolith::findMeChannel(const std::vector<Obj> & IDs, MapObjectSubID SubID) const
{
for(auto obj : cb->gameState()->map->objects)
{