aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/file_v1w.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-06-25 21:33:01 +0200
committerWillem Jan Palenstijn2011-06-25 21:35:17 +0200
commitd21402ef3c39e8a4664e36417d8192208a21b148 (patch)
tree8b18cad71c5ad89608746cb726d5c40413e7be5b /engines/hugo/file_v1w.cpp
parentbc4691a23e0ff1ff6f2452d7ad5d4cd612ad06a1 (diff)
downloadscummvm-rg350-d21402ef3c39e8a4664e36417d8192208a21b148.tar.gz
scummvm-rg350-d21402ef3c39e8a4664e36417d8192208a21b148.tar.bz2
scummvm-rg350-d21402ef3c39e8a4664e36417d8192208a21b148.zip
HUGO: Fix incorrect usage of sizeof
Thanks to salty-horse for the report. The new sizes are the ones that were replaced by sizeof in 399b59a583b.
Diffstat (limited to 'engines/hugo/file_v1w.cpp')
-rw-r--r--engines/hugo/file_v1w.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hugo/file_v1w.cpp b/engines/hugo/file_v1w.cpp
index eb2226f18a..162019dd2e 100644
--- a/engines/hugo/file_v1w.cpp
+++ b/engines/hugo/file_v1w.cpp
@@ -80,7 +80,7 @@ void FileManager_v1w::readOverlay(const int screenNum, image_pt image, ovl_t ove
break;
}
if (i == 0) {
- memset(image, 0, sizeof(image));
+ memset(image, 0, kOvlSize);
return;
}
_sceneryArchive1.read(tmpImage, kOvlSize);