mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
remove C++17 insert_or_assign usage
This commit is contained in:
parent
123ca6c417
commit
0786bd915a
@ -52,7 +52,7 @@ boost::optional<int> MapObjectsEvaluator::getObjectValue(int primaryID, int seco
|
||||
void MapObjectsEvaluator::addObjectData(int primaryID, int secondaryID, int value) //by current design it updates value if already in AI database
|
||||
{
|
||||
CompoundMapObjectID internalIdentifier = CompoundMapObjectID(primaryID, secondaryID);
|
||||
objectDatabase.insert_or_assign(internalIdentifier, value);
|
||||
objectDatabase[internalIdentifier] = value;
|
||||
}
|
||||
|
||||
void MapObjectsEvaluator::removeObjectData(int primaryID, int secondaryID)
|
||||
|
Loading…
Reference in New Issue
Block a user