From ed869b55411d51a829e5b502cbbf41cd450458e1 Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 9 May 2013 03:42:43 +0200 Subject: fix pattern anims --- lyt/animation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lyt/animation.cpp') diff --git a/lyt/animation.cpp b/lyt/animation.cpp index d5e87d3..bcb6bc1 100644 --- a/lyt/animation.cpp +++ b/lyt/animation.cpp @@ -77,12 +77,13 @@ LYTAnimation::LYTAnimation(QByteArray data) { importedFiles.reserve(fileCount); + qint64 strTabBegin = in.device()->pos(); for (int i = 0; i < fileCount; i++) { quint32 offs; in >> offs; qint64 saveMe = in.device()->pos(); - in.device()->seek(offs-8); + in.device()->seek(strTabBegin + offs); importedFiles.append(ReadVariableLengthASCII(in)); in.device()->seek(saveMe); -- cgit v1.2.3