Selaa lähdekoodia

Fixed a potential server crash in mob_chat_db

Fixes #1635
Thanks to @Temtaime
Lemongrass3110 8 vuotta sitten
vanhempi
commit
b2f0ffb947
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/map/mob.c

+ 1 - 1
src/map/mob.c

@@ -4273,7 +4273,7 @@ static bool mob_parse_row_chatdb(char* fields[], int columns, int current)
 	msg_id = atoi(fields[0]);
 
 	if (msg_id <= 0 || msg_id > MAX_MOB_CHAT){
-		ShowError("mob_parse_row_chatdb: Invalid chat ID: %d at %s, line %d\n", msg_id, columns, current);
+		ShowError("mob_parse_row_chatdb: Invalid chat ID '%d' in line %d\n", msg_id, current);
 		return false;
 	}