aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie
diff options
context:
space:
mode:
authorMax Horn2009-07-15 10:04:50 +0000
committerMax Horn2009-07-15 10:04:50 +0000
commitbaabc623f6e328718f94e907ce15112ec3078305 (patch)
treec2a1f53dddf0dd96a18fd4ba65d325e9376eae52 /engines/groovie
parent544bf83f33d41499b14e891a8eb395e556673b97 (diff)
downloadscummvm-rg350-baabc623f6e328718f94e907ce15112ec3078305.tar.gz
scummvm-rg350-baabc623f6e328718f94e907ce15112ec3078305.tar.bz2
scummvm-rg350-baabc623f6e328718f94e907ce15112ec3078305.zip
Got rid of two more ioFailed uses
svn-id: r42501
Diffstat (limited to 'engines/groovie')
-rw-r--r--engines/groovie/resource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/groovie/resource.cpp b/engines/groovie/resource.cpp
index eda3f0bec0..148fa9c451 100644
--- a/engines/groovie/resource.cpp
+++ b/engines/groovie/resource.cpp
@@ -98,7 +98,7 @@ uint16 ResMan_t7g::getRef(Common::String name, Common::String scriptname) {
uint16 resNum;
bool found = false;
- for (resNum = 0; !found && !rlFile.ioFailed(); resNum++) {
+ for (resNum = 0; !found && !rlFile.err() && !rlFile.eos(); resNum++) {
// Read the resource name
char readname[12];
rlFile.read(readname, 12);