aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/scrolls2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche/scrolls2.cpp')
-rw-r--r--engines/avalanche/scrolls2.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/engines/avalanche/scrolls2.cpp b/engines/avalanche/scrolls2.cpp
index a9c94b5d95..cefb4a2882 100644
--- a/engines/avalanche/scrolls2.cpp
+++ b/engines/avalanche/scrolls2.cpp
@@ -44,16 +44,15 @@
namespace Avalanche {
-Scrolls::Scrolls() {
- loadfont();
- resetscrolldriver();
-
-}
-
void Scrolls::setParent(AvalancheEngine *vm) {
_vm = vm;
}
+void Scrolls::init() {
+ loadfont();
+ resetscrolldriver();
+}
+
void Scrolls::state(byte x) { /* Sets "Ready" light to whatever */
warning("STUB: Scrolls::state()");
}
@@ -156,7 +155,7 @@ bool Scrolls::ask(Common::String question) {
void Scrolls::resetscroll() {
_vm->_gyro.scrolln = 1;
for (int j = 0; j < 15; j ++)
- for (int i = 0; i < sizeof(_vm->_gyro.scroll); i++)
+ for (int i = 0; i < _vm->_gyro.scroll[j].size(); i++)
_vm->_gyro.scroll[j].setChar(0, i);
}