diff --git a/components/esm/magiceffects.hpp b/components/esm/magiceffects.hpp index 94ae23a10..a931c68fa 100644 --- a/components/esm/magiceffects.hpp +++ b/components/esm/magiceffects.hpp @@ -39,9 +39,13 @@ namespace ESM { if (mEffectId < other.mEffectId) return true; + if (mEffectId > other.mEffectId) + return false; if (mSourceId < other.mSourceId) return true; + if (mSourceId > other.mSourceId) + return false; return mEffectIndex < other.mEffectIndex; }