1
0
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:
Dydzio 2018-07-30 14:07:39 +02:00
parent 123ca6c417
commit 0786bd915a

View File

@ -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)