Pārlūkot izejas kodu

` 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 gadi atpakaļ
vecāks
revīzija
4f5549d696
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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] );