So i have a map:
TMap<TSubclassOf<class ABaseTank>, int32> killcountByTankType;
The add Value function looks like this:
if (!killcountByTankType.Contains(tankType))
killcountByTankType.Emplace(tankType, 1);
else
killcountByTankType.Emplace(tankType, killcountByTankType.Find(tankType) + 1);
This does not compile and i get the error that i put in the question but i don’t understand why. Here is a complete log