summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/map.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/map.c b/src/map/map.c
index a6317234f..f909953c9 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -959,8 +959,6 @@ void map_addnickdb(struct map_session_data *sd) {
*------------------------------------------
*/
int map_quit(struct map_session_data *sd) {
- int i;
-
nullpo_retr(0, sd);
if(sd->chatID) // チャットから出る
@@ -1031,7 +1029,7 @@ int map_quit(struct map_session_data *sd) {
//double connect bug fix by Valaris
if(sd->alive_timer) {
delete_timer(sd->alive_timer,pc_alive_timer);
- sd->alive_timer = NULL;
+ sd->alive_timer = 0;
}
if( sd->npc_stackbuf && sd->npc_stackbuf != NULL)