aboutsummaryrefslogtreecommitdiff
path: root/engines/access/amazon
diff options
context:
space:
mode:
authorStrangerke2014-12-17 21:19:33 +0100
committerStrangerke2014-12-17 21:19:33 +0100
commitce1f04b1d5c27ca63c1e01b67ae5bfbe5faa0ee9 (patch)
tree2bdc730fd4d6abcb17805b0f67965669972d842d /engines/access/amazon
parentdf7fa78a860a06d110bad38e559e85257a08c87e (diff)
downloadscummvm-rg350-ce1f04b1d5c27ca63c1e01b67ae5bfbe5faa0ee9.tar.gz
scummvm-rg350-ce1f04b1d5c27ca63c1e01b67ae5bfbe5faa0ee9.tar.bz2
scummvm-rg350-ce1f04b1d5c27ca63c1e01b67ae5bfbe5faa0ee9.zip
ACCESS: Get rid of hardcoded size when using Common::Fill
Diffstat (limited to 'engines/access/amazon')
-rw-r--r--engines/access/amazon/amazon_game.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/access/amazon/amazon_game.cpp b/engines/access/amazon/amazon_game.cpp
index 66ccf3dcef..933a98aded 100644
--- a/engines/access/amazon/amazon_game.cpp
+++ b/engines/access/amazon/amazon_game.cpp
@@ -53,10 +53,10 @@ AmazonEngine::AmazonEngine(OSystem *syst, const AccessGameDescription *gameDesc)
_inactiveYOff = 0;
_hintLevel = 0;
- memset(_tileData, 0, sizeof(_tileData));
- Common::fill(&_help1[0], &_help1[365], 0);
- Common::fill(&_help2[0], &_help2[365], 0);
- Common::fill(&_help3[0], &_help3[365], 0);
+ Common::fill(&_tileData[0], &_tileData[0] + sizeof(_tileData), 0);
+ Common::fill(&_help1[0], &_help1[0] + sizeof(_help1), 0);
+ Common::fill(&_help2[0], &_help2[0] + sizeof(_help2), 0);
+ Common::fill(&_help3[0], &_help3[0] + sizeof(_help3), 0);
_helpTbl[0] = _help1;
_helpTbl[1] = _help2;
_helpTbl[2] = _help3;