aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/file_v1d.cpp
diff options
context:
space:
mode:
authorstrangerke2011-02-18 08:11:55 +0100
committerstrangerke2011-02-18 08:11:55 +0100
commit399b59a583b0ac92941cfe7756712d80970e47ee (patch)
tree93183f3ba97340c8fb70a4a3ebdbd2671a2ac80a /engines/hugo/file_v1d.cpp
parent41a5fc8476620d138227c369e2a2767e6e04f6d7 (diff)
downloadscummvm-rg350-399b59a583b0ac92941cfe7756712d80970e47ee.tar.gz
scummvm-rg350-399b59a583b0ac92941cfe7756712d80970e47ee.tar.bz2
scummvm-rg350-399b59a583b0ac92941cfe7756712d80970e47ee.zip
HUGO: Avoid duplicated code in functions related to HUGO.DAT
Diffstat (limited to 'engines/hugo/file_v1d.cpp')
-rw-r--r--engines/hugo/file_v1d.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/hugo/file_v1d.cpp b/engines/hugo/file_v1d.cpp
index be23edb7b4..d8b3fa494f 100644
--- a/engines/hugo/file_v1d.cpp
+++ b/engines/hugo/file_v1d.cpp
@@ -63,8 +63,7 @@ void FileManager_v1d::readOverlay(const int screenNum, image_pt image, const ovl
Common::String buf = Common::String(_vm->_text->getScreenNames(screenNum)) + Common::String(ovl_ext[overlayType]);
if (!Common::File::exists(buf)) {
- for (int i = 0; i < kOvlSize; i++)
- image[i] = 0;
+ memset(image, 0, sizeof(image));
warning("File not found: %s", buf.c_str());
return;
}