summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorxantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-08 07:27:13 +0000
committerxantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-08 07:27:13 +0000
commit836793f1d56ffa1526980f0e7f0aed81009df5ed (patch)
tree8fb3c1c5a3d421eed9f5b0fda3e64ed0807e29a1 /src/char/char.c
parentac827daf1a15f1b7953776a1a8fb598fb1fd066e (diff)
downloadhercules-836793f1d56ffa1526980f0e7f0aed81009df5ed.tar.gz
hercules-836793f1d56ffa1526980f0e7f0aed81009df5ed.tar.bz2
hercules-836793f1d56ffa1526980f0e7f0aed81009df5ed.tar.xz
hercules-836793f1d56ffa1526980f0e7f0aed81009df5ed.zip
` Fixed bugreport:5717 if character's last map is invalid, move to a major city
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16241 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c
index fbfbce285..914bb086b 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -3592,7 +3592,7 @@ int parse_char(int fd)
i = search_mapserver(cd->last_point.map, -1, -1);
// if map is not found, we check major cities
- if (i < 0) {
+ if (i < 0 || !cd->last_point.map) {
unsigned short j;
//First check that there's actually a map server online.
ARR_FIND( 0, ARRAYLENGTH(server), j, server[j].fd >= 0 && server[j].map[0] );