diff options
author | Lemongrass3110 <lemongrass@kstp.at> | 2015-06-01 19:21:00 +0200 |
---|---|---|
committer | Lemongrass3110 <lemongrass@kstp.at> | 2015-06-01 19:21:00 +0200 |
commit | 3b4362cd0148a0cabf37306eccf1abbff0edc360 (patch) | |
tree | 0ccc594df8faa20e91f2e476be1d72ec9d483f47 /src | |
parent | 544a75b873a3dbdfa21435a3ab93fea453406a5b (diff) | |
download | hercules-3b4362cd0148a0cabf37306eccf1abbff0edc360.tar.gz hercules-3b4362cd0148a0cabf37306eccf1abbff0edc360.tar.bz2 hercules-3b4362cd0148a0cabf37306eccf1abbff0edc360.tar.xz hercules-3b4362cd0148a0cabf37306eccf1abbff0edc360.zip |
Followup in malufett's commit a5a8605
Diffstat (limited to 'src')
-rw-r--r-- | src/map/pc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index b2dd11581..06a343714 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -181,8 +181,12 @@ int pc_spiritball_timer(int tid, int64 tick, int id, intptr_t data) { * @retval total number of spiritball **/ int pc_getmaxspiritball(struct map_session_data *sd, int min) { + int result; + nullpo_ret(sd); - int result = pc->checkskill(sd, MO_CALLSPIRITS); + + result = pc->checkskill(sd, MO_CALLSPIRITS); + if ( min && result < min ) result = min; else if ( sd->sc.data[SC_RAISINGDRAGON] ) |