From 527e15229774fcb90f37c9423cce8bd35d963e76 Mon Sep 17 00:00:00 2001 From: Vasilii Rogin Date: Fri, 14 Apr 2023 18:40:37 +0300 Subject: [PATCH] Allow messageIndex to be zero (#264) --- src/interpreter_extra.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter_extra.cc b/src/interpreter_extra.cc index 1cce7b4..12f3222 100644 --- a/src/interpreter_extra.cc +++ b/src/interpreter_extra.cc @@ -2987,7 +2987,7 @@ static void opGetMessageString(Program* program) int messageListIndex = programStackPopInteger(program); char* string; - if (messageIndex >= 1) { + if (messageIndex >= 0) { string = _scr_get_msg_str_speech(messageListIndex, messageIndex, 1); if (string == NULL) { debugPrint("\nError: No message file EXISTS!: index %d, line %d", messageListIndex, messageIndex);