From 92b1b287b1686424a58abfb06661916bf3dfcaeb Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Fri, 15 Apr 2016 23:49:00 +0200 Subject: ADL: Preliminary support for hires6 disk changing --- engines/adl/adl.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/adl/adl.cpp') diff --git a/engines/adl/adl.cpp b/engines/adl/adl.cpp index c17855d47c..761b60c717 100644 --- a/engines/adl/adl.cpp +++ b/engines/adl/adl.cpp @@ -219,6 +219,9 @@ byte AdlEngine::inputKey(bool showCursor) const { void AdlEngine::loadWords(Common::ReadStream &stream, WordMap &map, Common::StringArray &pri) const { uint index = 0; + map.clear(); + pri.clear(); + while (1) { ++index; @@ -255,6 +258,8 @@ void AdlEngine::loadWords(Common::ReadStream &stream, WordMap &map, Common::Stri } void AdlEngine::readCommands(Common::ReadStream &stream, Commands &commands) { + commands.clear(); + while (1) { Command command; command.room = stream.readByte(); -- cgit v1.2.3