[Scummvm-git-logs] scummvm master -> 1189f502127699baec0c3a0d2174c1067daec4bf

Die4Ever noreply at scummvm.org
Wed Jun 29 16:53:57 UTC 2022


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:
1189f50212 GROOVIE: TlcGame case-insensitive regionsLoad()


Commit: 1189f502127699baec0c3a0d2174c1067daec4bf
    https://github.com/scummvm/scummvm/commit/1189f502127699baec0c3a0d2174c1067daec4bf
Author: Die4Ever (die4ever2005 at gmail.com)
Date: 2022-06-29T11:53:42-05:00

Commit Message:
GROOVIE: TlcGame case-insensitive regionsLoad()

Changed paths:
    engines/groovie/logic/tlcgame.cpp


diff --git a/engines/groovie/logic/tlcgame.cpp b/engines/groovie/logic/tlcgame.cpp
index 4b2ce8d05fa..cb054f285ba 100644
--- a/engines/groovie/logic/tlcgame.cpp
+++ b/engines/groovie/logic/tlcgame.cpp
@@ -216,7 +216,8 @@ void TlcGame::regionsLoad() {
 
 	// Search for the question entry
 	for (int i = 0; i <= _numRegionHeaders; i++) {
-		if (strcmp(questName, _regionHeader[i].name) == 0) {
+		Common::String regionName(_regionHeader[i].name);
+		if (regionName.equalsIgnoreCase(questName)) {
 
 			// move to coordinates for this question
 			regionsfile->seek(_regionHeader[i].offset, SEEK_SET);




More information about the Scummvm-git-logs mailing list