aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/trip6.cpp
diff options
context:
space:
mode:
authoruruk2013-08-20 19:23:24 +0200
committeruruk2013-08-20 19:23:24 +0200
commitaab393077942224a5f376846582f7cd987366f75 (patch)
treea478697e854d0fac5c87c9f07189ea5b8ec36c34 /engines/avalanche/trip6.cpp
parentf9047bb83d8b66a604ebb02dabe77974dd758a4e (diff)
downloadscummvm-rg350-aab393077942224a5f376846582f7cd987366f75.tar.gz
scummvm-rg350-aab393077942224a5f376846582f7cd987366f75.tar.bz2
scummvm-rg350-aab393077942224a5f376846582f7cd987366f75.zip
AVALANCHE: Implement loading from the Launcher. Upgrade saveGame(), loadGame() in, add expandDate() to AvalancheEngine. Revise Avalot::setup(). Repair Lucerna::load() and triptype::init().
Diffstat (limited to 'engines/avalanche/trip6.cpp')
-rw-r--r--engines/avalanche/trip6.cpp3
1 files changed, 2 insertions, 1 deletions
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();