diff options
Diffstat (limited to 'engines/voyeur/data.h')
-rw-r--r-- | engines/voyeur/data.h | 8 |
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; + } + } } /** |