mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
Issue #256: changed implementation of MagicEffects::operator+=
This commit is contained in:
parent
40c58c1bb7
commit
372efaafd7
@ -99,9 +99,7 @@ namespace MWMechanics
|
||||
Collection::iterator result = mCollection.find (iter->first);
|
||||
|
||||
if (result!=mCollection.end())
|
||||
{
|
||||
result->second.mMagnitude += iter->second.mMagnitude;
|
||||
}
|
||||
result->second += iter->second;
|
||||
else
|
||||
mCollection.insert (*iter);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user