lastpoint fix

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@692 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
amber
2004-12-21 01:56:45 +00:00
parent 7f640f7faa
commit 836f2b84a9
2 changed files with 7 additions and 0 deletions

View File

@@ -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