1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +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

@@ -34,7 +34,7 @@
VCMI_LIB_NAMESPACE_BEGIN
std::map <PlayerColor, std::set <ui8> > CGKeys::playerKeyMap;
std::map <PlayerColor, std::set <MapObjectSubID> > CGKeys::playerKeyMap;
//TODO: Remove constructor
CQuest::CQuest():
@@ -724,7 +724,7 @@ void CGQuestGuard::init(CRandomGenerator & rand)
configuration.info.push_back({});
configuration.info.back().visitType = Rewardable::EEventType::EVENT_FIRST_VISIT;
configuration.info.back().reward.removeObject = subID == 0 ? true : false;
configuration.info.back().reward.removeObject = subID.getNum() == 0 ? true : false;
configuration.canRefuse = true;
}