mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +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);
|
||||
|
||||
if (result!=mCollection.end())
|
||||
{
|
||||
result->second.mMagnitude += iter->second.mMagnitude;
|
||||
}
|
||||
result->second += iter->second;
|
||||
else
|
||||
mCollection.insert (*iter);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue