浏览代码

boo

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@701 54d463be-8e91-2dee-dedb-b68131a5f0ec
amber 20 年之前
父节点
当前提交
a00d0713a1
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/map/map.c

+ 1 - 3
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)	// ƒ`ƒƒƒbƒg‚©‚ç�o‚é
@@ -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)