From 9f1fbd56a3aae38a683f44546bccf252ca575b28 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Fri, 4 Sep 2020 13:45:38 +0400 Subject: [PATCH] Fix SummonKey comparison function --- components/esm/magiceffects.hpp | 4 ++++ 1 file changed, 4 insertions(+) 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; }