summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-09 13:17:10 -0300
committershennetsind <ind@henn.et>2013-05-09 13:17:10 -0300
commit840bad1e94f22efc6ceb25f031476c3182e394c0 (patch)
tree905f298d568934cc230c25ce392c14e20f7cb99d /src
parentc95b0cddf7b946631a1cbdad607558b51a25261a (diff)
downloadhercules-840bad1e94f22efc6ceb25f031476c3182e394c0.tar.gz
hercules-840bad1e94f22efc6ceb25f031476c3182e394c0.tar.bz2
hercules-840bad1e94f22efc6ceb25f031476c3182e394c0.tar.xz
hercules-840bad1e94f22efc6ceb25f031476c3182e394c0.zip
Fixed Bug #7223
http://hercules.ws/board/tracker/issue-7223-homunculus-s-max-level-overshooting/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/homunculus.c5
1 files changed, 1 insertions, 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: