Allow messageIndex to be zero (#264)

This commit is contained in:
Vasilii Rogin 2023-04-14 18:40:37 +03:00 committed by GitHub
parent c8d45854ba
commit 527e152297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);