From 574780da21f39391dd4efb815cbd4f4a3971a20f Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Wed, 10 Jun 2009 00:06:35 +0000 Subject: [PATCH] Fixed primary/secondary skill levels given by a scholar. --- hch/CObjectHandler.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/hch/CObjectHandler.cpp b/hch/CObjectHandler.cpp index b3d9d53cb..f76f695de 100644 --- a/hch/CObjectHandler.cpp +++ b/hch/CObjectHandler.cpp @@ -2748,13 +2748,11 @@ void CGScholar::onHeroVisit( const CGHeroInstance * h ) const { case 0: cb->changePrimSkill(h->id,bid,+1); - iw.components.push_back(Component(Component::PRIM_SKILL,bid,1,0)); + iw.components.push_back(Component(Component::PRIM_SKILL,bid,ssl+1,0)); break; case 1: - { - cb->changeSecSkill(h->id,bid,ssl+1); - iw.components.push_back(Component(Component::SEC_SKILL,bid,ssl+1,0)); - } + cb->changeSecSkill(h->id,bid,+1); + iw.components.push_back(Component(Component::SEC_SKILL,bid,ssl+1,0)); break; case 2: {