diff options
author | Scott Thomas | 2012-06-17 16:22:32 +0930 |
---|---|---|
committer | Scott Thomas | 2012-06-17 16:27:49 +0930 |
commit | 06b905a218094458b1028d429956639c4a1cde7e (patch) | |
tree | d45875920c91782b8b8743a38ea368e7371a87c4 | |
parent | c825cc41a57b40a9af6ca51a3674b90e5f17e00f (diff) | |
download | scummvm-rg350-06b905a218094458b1028d429956639c4a1cde7e.tar.gz scummvm-rg350-06b905a218094458b1028d429956639c4a1cde7e.tar.bz2 scummvm-rg350-06b905a218094458b1028d429956639c4a1cde7e.zip |
GROOVIE: Fix 'off-by-one' when searching for ROQs by name
-rw-r--r-- | engines/groovie/resource.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/groovie/resource.cpp b/engines/groovie/resource.cpp index c26f04d6ee..42d76cabfa 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; } } |