From 1dcb99254cac671278b4f79a00cfe2fc696b66fc Mon Sep 17 00:00:00 2001 From: mateuszb Date: Fri, 17 Apr 2009 09:12:24 +0000 Subject: [PATCH] * ubuntux's levelup patch --- server/CGameHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index aac020e3f..2b2e3382b 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -216,7 +216,7 @@ void CGameHandler::changePrimSkill(int ID, int which, int val, bool abs) if(which==4) //only for exp - hero may level up { CGHeroInstance *hero = static_cast(gs->map->objects[ID]); - if(hero->exp >= VLC->heroh->reqExp(hero->level+1)) //new level + while (hero->exp >= VLC->heroh->reqExp(hero->level+1)) //new level { //give prim skill tlog5 << hero->name <<" got level "<level<