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