diff options
-rw-r--r-- | engines/supernova/supernova.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index c0b9216de1..66fde2806f 100644 --- a/engines/supernova/supernova.cpp +++ b/engines/supernova/supernova.cpp @@ -480,11 +480,12 @@ void SupernovaEngine::restoreScreen() { void SupernovaEngine::renderRoom(Room &room) { if (room.getFileNumber() != -1) { + _currentImage = &(_images[room.getFileNumber()]); for (int i = 0; i < _currentImage->_numSections; ++i) { int section = i; if (room.isSectionVisible(section)) { do { - renderImage(room.getFileNumber(), section); + renderImage(*_currentImage, section); section = _currentImage->_section[section].next; } while (section != 0); } |