Fix gem initialization

This commit is contained in:
Yunfan Li
2024-03-19 08:53:44 +08:00
parent 124fa9d5e0
commit 31bb36e751

View File

@@ -3350,8 +3350,8 @@ void PlayerbotFactory::ApplyEnchantAndGemsNew(bool destoryOld)
bestGemEnchantId[2] = enchant_id; bestGemEnchantId[2] = enchant_id;
} }
if ((gemProperties->color & 8) && score >= bestGemScore[3]) { if ((gemProperties->color & 8) && score >= bestGemScore[3]) {
bestGemScore[2] = score; bestGemScore[3] = score;
bestGemEnchantId[2] = enchant_id; bestGemEnchantId[3] = enchant_id;
} }
} }