From 31bb36e751becc720153d6750bf6cc84eacf5770 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Tue, 19 Mar 2024 08:53:44 +0800 Subject: [PATCH] Fix gem initialization --- src/PlayerbotFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PlayerbotFactory.cpp b/src/PlayerbotFactory.cpp index 9e781311..6ad45526 100644 --- a/src/PlayerbotFactory.cpp +++ b/src/PlayerbotFactory.cpp @@ -3350,8 +3350,8 @@ void PlayerbotFactory::ApplyEnchantAndGemsNew(bool destoryOld) bestGemEnchantId[2] = enchant_id; } if ((gemProperties->color & 8) && score >= bestGemScore[3]) { - bestGemScore[2] = score; - bestGemEnchantId[2] = enchant_id; + bestGemScore[3] = score; + bestGemEnchantId[3] = enchant_id; } }