diff options
Diffstat (limited to 'common/file.cpp')
-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; |