Allow messageIndex to be zero

This commit is contained in:
Vasilii Rogin 2023-04-13 20:34:49 +03:00
parent e23b39abaa
commit 5c59dd9770
1 changed files with 1 additions and 1 deletions

View File

@ -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);