From 840bad1e94f22efc6ceb25f031476c3182e394c0 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 9 May 2013 13:17:10 -0300 Subject: Fixed Bug #7223 http://hercules.ws/board/tracker/issue-7223-homunculus-s-max-level-overshooting/ Signed-off-by: shennetsind --- src/map/homunculus.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/map/homunculus.c b/src/map/homunculus.c index 6e9ce58b6..026b9a86c 100644 --- a/src/map/homunculus.c +++ b/src/map/homunculus.c @@ -471,15 +471,12 @@ int homunculus_gainexp(struct homun_data *hd,unsigned int exp) { if(hd->homunculus.vaporize) return 1; - + if((htype = homun->class2type(hd->homunculus.class_)) == -1) { ShowError("homunculus_gainexp: Invalid class %d. \n", hd->homunculus.class_); return 0; } - if( !hd->exp_next || hd->homunculus.exp < hd->exp_next ) - return 0; - switch( htype ) { case HT_REG: case HT_EVO: -- cgit v1.2.3-60-g2f50