aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mohawk/console.cpp')
-rw-r--r--engines/mohawk/console.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/mohawk/console.cpp b/engines/mohawk/console.cpp
index 4be76930c5..41dd535c3a 100644
--- a/engines/mohawk/console.cpp
+++ b/engines/mohawk/console.cpp
@@ -510,10 +510,12 @@ bool RivenConsole::Cmd_ChangeStack(int argc, const char **argv) {
}
bool RivenConsole::Cmd_Hotspots(int argc, const char **argv) {
- debugPrintf("Current card (%d) has %d hotspots:\n", _vm->getCurCard()->getId(), _vm->_hotspots.size());
+ Common::Array<RivenHotspot *> hotspots = _vm->_card->getHotspots();
- for (uint16 i = 0; i < _vm->_hotspots.size(); i++) {
- RivenHotspot *hotspot = _vm->_hotspots[i];
+ debugPrintf("Current card (%d) has %d hotspots:\n", _vm->getCurCard()->getId(), hotspots.size());
+
+ for (uint16 i = 0; i < hotspots.size(); i++) {
+ RivenHotspot *hotspot = hotspots[i];
debugPrintf("Hotspot %d, index %d, BLST ID %d (", i, hotspot->getIndex(), hotspot->getBlstId());
if (hotspot->isEnabled())