[Scummvm-git-logs] scummvm master -> 24eb4a839011502d4a2bda4b4c5a9f5d71d31052
sev-
noreply at scummvm.org
Sat Apr 1 17:11:48 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
24eb4a8390 DIRECTOR: LINGO: Properly fix the warning and improve debug output
Commit: 24eb4a839011502d4a2bda4b4c5a9f5d71d31052
https://github.com/scummvm/scummvm/commit/24eb4a839011502d4a2bda4b4c5a9f5d71d31052
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-04-01T19:11:24+02:00
Commit Message:
DIRECTOR: LINGO: Properly fix the warning and improve debug output
Changed paths:
engines/director/lingo/lingo-mci.cpp
diff --git a/engines/director/lingo/lingo-mci.cpp b/engines/director/lingo/lingo-mci.cpp
index 2fb13b12f45..db7b3024017 100644
--- a/engines/director/lingo/lingo-mci.cpp
+++ b/engines/director/lingo/lingo-mci.cpp
@@ -324,7 +324,7 @@ static MCIError parseMCICommand(const Common::String &name, MCICommand &parsedCm
bool found = false;
bool inConst = false;
int flag, cflag = 0;
- CmdTableRow *cmdtable, *c_cmdtable = cmdtable;
+ CmdTableRow *cmdtable, *c_cmdtable = nullptr;
auto& token = token_list[i_token];
for (i_table = tableStart; i_table < tableEnd; i_table++) {
@@ -404,7 +404,7 @@ static MCIError parseMCICommand(const Common::String &name, MCICommand &parsedCm
}
default:
- warning("parseMCICommand(): Unhandled command type.");
+ warning("parseMCICommand(): Unhandled command type %d", cmd_type);
return MCIERR_UNRECOGNISED_COMMAND;
}
}
More information about the Scummvm-git-logs
mailing list