mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-13 10:43:06 +00:00
Merge pull request #3002 from akortunov/multiple_effects
Fix SummonKey comparison function
This commit is contained in:
commit
bf1c4c7af3
1 changed files with 4 additions and 0 deletions
|
|
@ -39,9 +39,13 @@ namespace ESM
|
||||||
{
|
{
|
||||||
if (mEffectId < other.mEffectId)
|
if (mEffectId < other.mEffectId)
|
||||||
return true;
|
return true;
|
||||||
|
if (mEffectId > other.mEffectId)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (mSourceId < other.mSourceId)
|
if (mSourceId < other.mSourceId)
|
||||||
return true;
|
return true;
|
||||||
|
if (mSourceId > other.mSourceId)
|
||||||
|
return false;
|
||||||
|
|
||||||
return mEffectIndex < other.mEffectIndex;
|
return mEffectIndex < other.mEffectIndex;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue