From ca6947b2cce529e2effe962bc6686494c0c491d1 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Tue, 24 Jan 2023 17:35:06 +0200 Subject: [PATCH] Fixed Tree of Knowledge component --- lib/mapObjects/CRewardableObject.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mapObjects/CRewardableObject.cpp b/lib/mapObjects/CRewardableObject.cpp index 8381bbab9..07e40f540 100644 --- a/lib/mapObjects/CRewardableObject.cpp +++ b/lib/mapObjects/CRewardableObject.cpp @@ -426,7 +426,8 @@ void CRewardInfo::loadComponents(std::vector & comps, comps.push_back(Component( Component::EXPERIENCE, 0, (si32)h->calculateXp(gainedExp), 0)); } - if (gainedLevels) comps.push_back(Component(Component::EXPERIENCE, 0, gainedLevels, 0)); + if (gainedLevels) + comps.push_back(Component(Component::EXPERIENCE, 1, gainedLevels, 0)); if (manaDiff) comps.push_back(Component(Component::PRIM_SKILL, 5, manaDiff, 0));