diff options
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/map.c b/src/map/map.c index 12039e914..e5f266b9e 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -963,7 +963,7 @@ int map_foreachinmovearea(int (*func)(struct block_list*,va_list),int m,int x0,i for(i=blockcount;i<bl_list_count;i++) if(bl_list[i]->prev) { // 有?かどうかチェック if (bl_list[i]->type == BL_PC - && session[((struct map_session_data *) bl_list[i])->fd] == NULL) + && ((TBL_PC*) bl_list[i])->fd == 0) continue; returnCount += func(bl_list[i],ap); } @@ -1713,7 +1713,7 @@ int map_quit(struct map_session_data *sd) { if(charsave_method) { //Let player be free'd on closing the connection. idb_remove(pc_db,sd->status.account_id); - if (!(sd->fd && session[sd->fd]->session_data)) + if (!(sd->fd && session[sd->fd]->session_data == sd)) aFree(sd); //In case player was not attached to session. return 0; } |