From 5fe95d51ea3d35e9de725a08b3681fbc3f8844bc Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Sun, 10 Apr 2016 15:20:17 +0200 Subject: ADL: Separate game-specific state init --- engines/adl/hires2.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'engines/adl/hires2.cpp') diff --git a/engines/adl/hires2.cpp b/engines/adl/hires2.cpp index 06fdc5ff9a..d1dd065b4c 100644 --- a/engines/adl/hires2.cpp +++ b/engines/adl/hires2.cpp @@ -130,10 +130,7 @@ void HiRes2Engine::init() { loadWords(*stream, _nouns, _priNouns); } -void HiRes2Engine::initState() { - _linesPrinted = 0; - - _state = State(); +void HiRes2Engine::initGameState() { _state.vars.resize(IDI_HR2_NUM_VARS); StreamPtr stream(_disk->createReadStream(0x21, 0x5, 0x0e, 7)); -- cgit v1.2.3