Fixed a potential crash in the char-server (#5381)
This commit is contained in:
parent
7264180a6f
commit
bd90763ffe
@ -839,7 +839,7 @@ void chlogif_on_ready(void)
|
|||||||
chlogif_send_acc_tologin(INVALID_TIMER, gettick(), 0, 0);
|
chlogif_send_acc_tologin(INVALID_TIMER, gettick(), 0, 0);
|
||||||
|
|
||||||
// if no map-server already connected, display a message...
|
// 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) )
|
if( i == ARRAYLENGTH(map_server) )
|
||||||
ShowStatus("Awaiting maps from map-server.\n");
|
ShowStatus("Awaiting maps from map-server.\n");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user