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:
parent
40c58c1bb7
commit
372efaafd7
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue