Ver Fonte

Fixed a potential crash in the char-server (#5381)

Daegaladh há 4 anos atrás
pai
commit
bd90763ffe
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/char/char_logif.cpp

+ 1 - 1
src/char/char_logif.cpp

@@ -839,7 +839,7 @@ void chlogif_on_ready(void)
 	chlogif_send_acc_tologin(INVALID_TIMER, gettick(), 0, 0);
 
 	// if no map-server already connected, display a message...
-	ARR_FIND( 0, ARRAYLENGTH(map_server), i, map_server[i].fd > 0 && map_server[i].map[0] );
+	ARR_FIND( 0, ARRAYLENGTH(map_server), i, map_server[i].fd > 0 && !map_server[i].map.empty() );
 	if( i == ARRAYLENGTH(map_server) )
 		ShowStatus("Awaiting maps from map-server.\n");
 }