summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-21 01:56:45 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-21 01:56:45 +0000
commit9ac9a0d7ea6c845ccde66f3232557e60ad23a315 (patch)
treef05ab49c5c220b838caf4746eb49cd7937240e57 /src/char_sql/char.c
parentd8f6e45557a5966356e867c8ca2d6122e992b531 (diff)
downloadhercules-9ac9a0d7ea6c845ccde66f3232557e60ad23a315.tar.gz
hercules-9ac9a0d7ea6c845ccde66f3232557e60ad23a315.tar.bz2
hercules-9ac9a0d7ea6c845ccde66f3232557e60ad23a315.tar.xz
hercules-9ac9a0d7ea6c845ccde66f3232557e60ad23a315.zip
lastpoint fix
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@692 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index a1318bcc1..6b14b9192 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -954,6 +954,12 @@ int mmo_char_fromsql(int char_id, struct mmo_charstatus *p, int online){
} else
printf("char2 - failed\n"); //Error?! ERRRRRR WHAT THAT SAY!?
+ if (p->last_point.x == 0 || p->last_point.y == 0 || p->last_point.map[0] == '\0')
+ memcpy(&p->last_point, &start_point, sizeof(start_point));
+
+ if (p->save_point.x == 0 || p->save_point.y == 0 || p->save_point.map[0] == '\0')
+ memcpy(&p->save_point, &start_point, sizeof(start_point));
+
printf("char2 ");
//read memo data