aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/data.h
diff options
context:
space:
mode:
authorPaul Gilbert2014-02-01 16:27:58 -0500
committerPaul Gilbert2014-02-01 16:27:58 -0500
commite1eddb5ecb541a9ea57734b379616e5fa61fe64b (patch)
treee7e9ead32ea57d9fa43d24755005b182bd3808f4 /engines/voyeur/data.h
parent10f9c2fb039a901b938229ca77eded3a3ef4fa75 (diff)
downloadscummvm-rg350-e1eddb5ecb541a9ea57734b379616e5fa61fe64b.tar.gz
scummvm-rg350-e1eddb5ecb541a9ea57734b379616e5fa61fe64b.tar.bz2
scummvm-rg350-e1eddb5ecb541a9ea57734b379616e5fa61fe64b.zip
VOYEUR: Initialization bugfixes
Diffstat (limited to 'engines/voyeur/data.h')
-rw-r--r--engines/voyeur/data.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/voyeur/data.h b/engines/voyeur/data.h
index b798e3880c..b243b15682 100644
--- a/engines/voyeur/data.h
+++ b/engines/voyeur/data.h
@@ -67,8 +67,12 @@ public:
* Resets the data to an initial state
*/
void reset() {
- Common::fill(&_min[0][0], &_min[SLOTS][20], 9999);
- Common::fill(&_max[0][0], &_max[SLOTS][20], 0);
+ for (int hotspotIdx = 0; hotspotIdx < 20; ++hotspotIdx) {
+ for (int slotIdx = 0; slotIdx < SLOTS; ++slotIdx) {
+ _min[slotIdx][hotspotIdx] = 9999;
+ _max[slotIdx][hotspotIdx] = 0;
+ }
+ }
}
/**