From 6b353346b9eeba1514b8d1b2e9ffb204cd2493f0 Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 1 Jul 2016 20:01:31 +0100 Subject: [PATCH] read footpath objects correctly --- src/object/FootpathObject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/object/FootpathObject.cpp b/src/object/FootpathObject.cpp index 752a8d1f0a..198d127e0e 100644 --- a/src/object/FootpathObject.cpp +++ b/src/object/FootpathObject.cpp @@ -32,12 +32,12 @@ enum OBJ_STRING_ID void FootpathObject::ReadLegacy(IStream * stream) { _legacyType.string_idx = stream->ReadValue(); - _legacyType.image = stream->ReadValue(); + _legacyType.image = stream->ReadValue(); _legacyType.bridge_image = stream->ReadValue(); _legacyType.var_0A = stream->ReadValue(); _legacyType.flags = stream->ReadValue(); _legacyType.scrolling_mode = stream->ReadValue(); - stream->Seek(1, STREAM_SEEK_BEGIN); + stream->Seek(1, STREAM_SEEK_CURRENT); GetStringTable()->Read(stream, OBJ_STRING_ID_NAME); GetImageTable()->Read(stream);