1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 01:23:53 +00:00

Issue #256: changed implementation of MagicEffects::operator+=

This commit is contained in:
Marc Zinnschlag 2012-05-18 15:27:41 +02:00
parent 40c58c1bb7
commit 372efaafd7

View file

@ -99,9 +99,7 @@ namespace MWMechanics
Collection::iterator result = mCollection.find (iter->first); Collection::iterator result = mCollection.find (iter->first);
if (result!=mCollection.end()) if (result!=mCollection.end())
{ result->second += iter->second;
result->second.mMagnitude += iter->second.mMagnitude;
}
else else
mCollection.insert (*iter); mCollection.insert (*iter);
} }