mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Remove explicit convesion to int in operators
This commit is contained in:
@ -33,7 +33,7 @@
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
std::map <si32, std::vector<ObjectInstanceID> > CGMagi::eyelist;
|
||||
std::map <MapObjectSubID, std::vector<ObjectInstanceID> > CGMagi::eyelist;
|
||||
ui8 CGObelisk::obeliskCount = 0; //how many obelisks are on map
|
||||
std::map<TeamID, ui8> CGObelisk::visited; //map: team_id => how many obelisks has been visited
|
||||
|
||||
@ -219,7 +219,7 @@ void CGMine::serializeJsonOptions(JsonSerializeFormat & handler)
|
||||
for(const auto & resID : abandonedMineResources)
|
||||
{
|
||||
JsonNode one(JsonNode::JsonType::DATA_STRING);
|
||||
one.String() = GameConstants::RESOURCE_NAMES[resID];
|
||||
one.String() = GameConstants::RESOURCE_NAMES[resID.getNum()];
|
||||
node.Vector().push_back(one);
|
||||
}
|
||||
handler.serializeRaw("possibleResources", node, std::nullopt);
|
||||
|
Reference in New Issue
Block a user