aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
diff options
context:
space:
mode:
authorMax Horn2004-04-17 12:42:40 +0000
committerMax Horn2004-04-17 12:42:40 +0000
commitae50adfd310cc4304129e5c2b5de7ffc69ba229c (patch)
treed82582e0c5bbf9bf13baea20b8ff37b8e0517849 /common/file.cpp
parente17a15d96e46939d2ec4403ee5241baafdd562c0 (diff)
downloadscummvm-rg350-ae50adfd310cc4304129e5c2b5de7ffc69ba229c.tar.gz
scummvm-rg350-ae50adfd310cc4304129e5c2b5de7ffc69ba229c.tar.bz2
scummvm-rg350-ae50adfd310cc4304129e5c2b5de7ffc69ba229c.zip
Fix byte reads
svn-id: r13596
Diffstat (limited to 'common/file.cpp')
-rw-r--r--common/file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/file.cpp b/common/file.cpp
index b9f097c986..4bb6e94fad 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -265,9 +265,9 @@ uint32 File::read(void *ptr, uint32 len) {
if (_encbyte != 0) {
uint32 t_size = real_len;
- do {
+ while (t_size--) {
*ptr2++ ^= _encbyte;
- } while (--t_size);
+ }
}
return real_len;