[Scummvm-git-logs] scummvm master -> 33f8e1228a5c2ed2cdc980beab7797f5e95370d6
sev-
sev at scummvm.org
Thu Oct 14 10:21:30 UTC 2021
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:
33f8e1228a MADS: Avoid adding '\0' to quotes
Commit: 33f8e1228a5c2ed2cdc980beab7797f5e95370d6
https://github.com/scummvm/scummvm/commit/33f8e1228a5c2ed2cdc980beab7797f5e95370d6
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-10-14T13:21:07+03:00
Commit Message:
MADS: Avoid adding '\0' to quotes
Changed paths:
engines/mads/game.cpp
diff --git a/engines/mads/game.cpp b/engines/mads/game.cpp
index b9faabbe86..21b312c747 100644
--- a/engines/mads/game.cpp
+++ b/engines/mads/game.cpp
@@ -351,7 +351,9 @@ void Game::loadQuotes() {
while (true) {
uint8 b = f.readByte();
- msg += b;
+ if (b != '\0')
+ msg += b;
+
if (f.eos() || b == '\0') {
// end of string, add it to the strings list
_quotes.push_back(msg);
More information about the Scummvm-git-logs
mailing list