diff options
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 09565b608..e19f66126 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -184,8 +184,9 @@ int chrif_isconnect(void) int chrif_save(struct map_session_data *sd, int flag) { nullpo_retr(-1, sd); - - pc_makesavestatus(sd); + + if (!flag) //The flag check is needed to prevent 'nosave' taking effect when a jailed player logs out. + pc_makesavestatus(sd); if(!chrif_isconnect()) { if (flag) sd->state.finalsave = 1; //Will save character on reconnect. |