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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user