From 7f97971c1585056790187999228bffeb4dda7b7c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 28 Feb 2021 11:48:55 -0300 Subject: [TMW2] Do not fail silently if specified message number is not found. --- src/map/atcommand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 364d84662..c55a4a1b1 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -126,6 +126,7 @@ static const char *atcommand_msg(int msg_number) if(atcommand->msg_table[0][msg_number] != NULL && atcommand->msg_table[0][msg_number][0] != '\0') return atcommand->msg_table[0][msg_number]; + ShowWarning("show_msg: Invalid message number %d", msg_number); return "??"; } -- cgit v1.2.3-60-g2f50