summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-28 11:48:55 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-28 11:48:55 -0300
commit7f97971c1585056790187999228bffeb4dda7b7c (patch)
tree8a56cdf5cf91d2428685a9e9f1cc0334a2ae83d6
parentb0f5ccea2c185a4cceb694c8b307424c3d694f1c (diff)
downloadhercules-7f97971c1585056790187999228bffeb4dda7b7c.tar.gz
hercules-7f97971c1585056790187999228bffeb4dda7b7c.tar.bz2
hercules-7f97971c1585056790187999228bffeb4dda7b7c.tar.xz
hercules-7f97971c1585056790187999228bffeb4dda7b7c.zip
[TMW2] Do not fail silently if specified message number is not found.
-rw-r--r--src/map/atcommand.c1
1 files changed, 1 insertions, 0 deletions
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 "??";
}