diff options
author | Max Horn | 2004-04-17 12:42:40 +0000 |
---|---|---|
committer | Max Horn | 2004-04-17 12:42:40 +0000 |
commit | ae50adfd310cc4304129e5c2b5de7ffc69ba229c (patch) | |
tree | d82582e0c5bbf9bf13baea20b8ff37b8e0517849 | |
parent | e17a15d96e46939d2ec4403ee5241baafdd562c0 (diff) | |
download | scummvm-rg350-ae50adfd310cc4304129e5c2b5de7ffc69ba229c.tar.gz scummvm-rg350-ae50adfd310cc4304129e5c2b5de7ffc69ba229c.tar.bz2 scummvm-rg350-ae50adfd310cc4304129e5c2b5de7ffc69ba229c.zip |
Fix byte reads
svn-id: r13596
-rw-r--r-- | common/file.cpp | 4 |
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; |