summaryrefslogtreecommitdiff
path: root/lyt/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lyt/animation.cpp')
-rw-r--r--lyt/animation.cpp3
1 files changed, 2 insertions, 1 deletions
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);