summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 9f4692cd3..82a17965a 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2784,6 +2784,9 @@ int status_calc_pc_(struct map_session_data* sd, bool first)
status->hp = 1;
status->sp = status->max_sp * battle_config.restart_sp_rate /100;
+
+ if( !status->sp ) /* the minimum for the respawn setting is SP:1 */
+ status->sp = 1;
}
// ----- MISC CALCULATION -----
@@ -3077,7 +3080,7 @@ int status_calc_pc_(struct map_session_data* sd, bool first)
}
calculating = 0;
-
+
return 0;
}