summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
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] )