[Scummvm-git-logs] scummvm master -> 1c763d25d3b5d8965bd923f464e4249db61c6052
athrxx
athrxx at scummvm.org
Fri Jan 1 15:39:51 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:
1c763d25d3 KYRA: (HOF) - fix regression
Commit: 1c763d25d3b5d8965bd923f464e4249db61c6052
https://github.com/scummvm/scummvm/commit/1c763d25d3b5d8965bd923f464e4249db61c6052
Author: athrxx (athrxx at scummvm.org)
Date: 2021-01-01T16:39:07+01:00
Commit Message:
KYRA: (HOF) - fix regression
Changed paths:
engines/kyra/engine/kyra_hof.cpp
diff --git a/engines/kyra/engine/kyra_hof.cpp b/engines/kyra/engine/kyra_hof.cpp
index fe074220f5..a8265351a3 100644
--- a/engines/kyra/engine/kyra_hof.cpp
+++ b/engines/kyra/engine/kyra_hof.cpp
@@ -871,13 +871,12 @@ void KyraEngine_HoF::showChapterMessage(int id, int16 palIndex) {
void KyraEngine_HoF::updateCommandLineEx(int str1, int str2, int16 palIndex) {
Common::String str = getTableString(str1, _cCodeBuffer, true);
-
+
if (_flags.lang != Common::JA_JPN) {
- uint i = 0;
- while (str[i] != ' ')
- ++i;
- ++i;
- str.setChar(toupper(str[i]), i);
+ if (uint32 i = (uint32)str.findFirstOf(' ') + 1) {
+ str.erase(0, i);
+ str.setChar(toupper(str[0]), 0);
+ }
}
if (str2 > 0) {
More information about the Scummvm-git-logs
mailing list