[Scummvm-cvs-logs] scummvm master -> 06b905a218094458b1028d429956639c4a1cde7e

scott-t s at sthomas.id.au
Sun Jun 17 09:01:05 CEST 2012


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:
06b905a218 GROOVIE: Fix 'off-by-one' when searching for ROQs by name


Commit: 06b905a218094458b1028d429956639c4a1cde7e
    https://github.com/scummvm/scummvm/commit/06b905a218094458b1028d429956639c4a1cde7e
Author: Scott Thomas (scott_t at users.sourceforge.net)
Date: 2012-06-16T23:57:49-07:00

Commit Message:
GROOVIE: Fix 'off-by-one' when searching for ROQs by name

Changed paths:
    engines/groovie/resource.cpp



diff --git a/engines/groovie/resource.cpp b/engines/groovie/resource.cpp
index c26f04d..42d76ca 100644
--- a/engines/groovie/resource.cpp
+++ b/engines/groovie/resource.cpp
@@ -242,6 +242,7 @@ uint32 ResMan_v2::getRef(Common::String name, Common::String scriptname) {
 		if (resname.hasPrefix(name.c_str())) {
 			debugC(2, kGroovieDebugResource | kGroovieDebugAll, "Groovie::Resource: Resource %18s matches %s", readname, name.c_str());
 			found = true;
+			break;
 		}
 	}
 






More information about the Scummvm-git-logs mailing list