summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-10 22:11:35 +0000
committerKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-10 22:11:35 +0000
commit87d21f1ceb411f3610a4abcb1a2e8a9af399d13b (patch)
treea8d1d9d1265cf496c819a64da16285edba330b37
parenta2181d92df9cfd3b094211ffa126de43b8152b50 (diff)
downloadhercules-87d21f1ceb411f3610a4abcb1a2e8a9af399d13b.tar.gz
hercules-87d21f1ceb411f3610a4abcb1a2e8a9af399d13b.tar.bz2
hercules-87d21f1ceb411f3610a4abcb1a2e8a9af399d13b.tar.xz
hercules-87d21f1ceb411f3610a4abcb1a2e8a9af399d13b.zip
Crash fix for (r12552).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12554 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/chrif.c14
-rw-r--r--src/map/chrif.h1
2 files changed, 14 insertions, 1 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 492f57051..9b38a642e 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -627,7 +627,7 @@ int auth_db_cleanup_sub(DBKey key,void *data,va_list ap)
default:
//Clear data. any connected players should have timed out by now.
ShowInfo("auth_db: Node (state %s) timed out for %d:%d\n", states[node->state], node->account_id, node->char_id);
- chrif_char_offline(node->sd);
+ chrif_char_offline_nsd(node->account_id, node->char_id);
chrif_auth_delete(node->account_id, node->char_id, node->state);
break;
}
@@ -1263,6 +1263,18 @@ int chrif_char_offline(struct map_session_data *sd)
return 0;
}
+int chrif_char_offline_nsd(int account_id, int char_id)
+{
+ chrif_check(-1);
+
+ WFIFOHEAD(char_fd,10);
+ WFIFOW(char_fd,0) = 0x2b17;
+ WFIFOL(char_fd,2) = char_id;
+ WFIFOL(char_fd,6) = account_id;
+ WFIFOSET(char_fd,10);
+
+ return 0;
+}
/*=========================================
* Tell char-server to reset all chars offline [Wizputer]
diff --git a/src/map/chrif.h b/src/map/chrif.h
index 57282dcdb..5d0c6bc9d 100644
--- a/src/map/chrif.h
+++ b/src/map/chrif.h
@@ -50,6 +50,7 @@ int chrif_buildfamelist(void);
int chrif_save_scdata(struct map_session_data *sd);
int chrif_ragsrvinfo(int base_rate,int job_rate, int drop_rate);
int chrif_char_offline(struct map_session_data *sd);
+int chrif_char_offline_nsd(int account_id, int char_id);
int chrif_char_reset_offline(void);
int send_users_tochar(void);
int chrif_char_online(struct map_session_data *sd);