瀏覽代碼

` Fixed bugreport:5717 if character's last map is invalid, move to a major city

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16241 54d463be-8e91-2dee-dedb-b68131a5f0ec
xantara 13 年之前
父節點
當前提交
4f5549d696
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/char/char.c

+ 1 - 1
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] );