summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-14 14:18:30 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-14 14:18:30 +0000
commit50df12f5c8f485b12944182a53c43df975edd4cb (patch)
treee2f1949f32c5dab7c45cc0d2946062ff28904a8e /src/char
parent03cc029170d3ccdc02864d691b8aecd9d14ae7cd (diff)
downloadhercules-50df12f5c8f485b12944182a53c43df975edd4cb.tar.gz
hercules-50df12f5c8f485b12944182a53c43df975edd4cb.tar.bz2
hercules-50df12f5c8f485b12944182a53c43df975edd4cb.tar.xz
hercules-50df12f5c8f485b12944182a53c43df975edd4cb.zip
- Fixed main.sql adding a key on char_id rather than account_id for the char table.
- Cleaned up character saving in char-sql, it no longer needs to query the database to see if the player exists on each char-save, instead it checks the received data against the online-players db. - Added an error message on the char-server when the received player data size does not matches with the expected size (should avoid the crash that happens on such a memcpy). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7160 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 5a9b2668a..701240f60 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -2690,9 +2690,8 @@ int parse_frommap(int fd) {
}
if (i != char_num)
memcpy(&char_dat[i].status, RFIFOP(fd,13), sizeof(struct mmo_charstatus));
- if (RFIFOB(fd,12)) { //Flag, set character offline. [Skotlex]
+ if (RFIFOB(fd,12)) //Flag, set character offline. [Skotlex]
set_char_offline(RFIFOL(fd,8),RFIFOL(fd,4));
- }
RFIFOSKIP(fd,RFIFOW(fd,2));
break;