From aab393077942224a5f376846582f7cd987366f75 Mon Sep 17 00:00:00 2001 From: uruk Date: Tue, 20 Aug 2013 19:23:24 +0200 Subject: AVALANCHE: Implement loading from the Launcher. Upgrade saveGame(), loadGame() in, add expandDate() to AvalancheEngine. Revise Avalot::setup(). Repair Lucerna::load() and triptype::init(). --- engines/avalanche/trip6.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/avalanche/trip6.cpp') diff --git a/engines/avalanche/trip6.cpp b/engines/avalanche/trip6.cpp index d4573a0851..54312ce773 100644 --- a/engines/avalanche/trip6.cpp +++ b/engines/avalanche/trip6.cpp @@ -79,7 +79,8 @@ void triptype::init(byte spritenum, bool do_check, Trip *tr) { inf.skip(2); // Replace variable named 'soa' in the original code. - //inf.skip(1); // We don't need to read the size of the string as in the original code. + if (!a.name.empty()) + a.name.clear(); byte nameSize = inf.readByte(); for (byte i = 0; i < nameSize; i++) a.name += inf.readByte(); -- cgit v1.2.3