diff options
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r-- | src/map/pc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 168d124..8d242ae 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -5201,13 +5201,13 @@ void pc_autosave_sub(dumb_ptr<map_session_data> sd) { nullpo_retv(sd); - if (save_flag == 0 && sd->sess->fd > last_save_fd) + if (save_flag == 0 && sd->sess->fd.uncast_dammit() > last_save_fd) { pc_makesavestatus(sd); chrif_save(sd); save_flag = 1; - last_save_fd = sd->sess->fd; + last_save_fd = sd->sess->fd.uncast_dammit(); } } |