From 0a71d8cb6c0e60e127d72367186c049ffdac6fc4 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 19 Aug 2018 11:46:05 -0700 Subject: [PATCH] ULTIMA1: Fix generation of datafile index --- devtools/create_ultima/archive.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devtools/create_ultima/archive.cpp b/devtools/create_ultima/archive.cpp index e8e8728be59..3b23d904d83 100644 --- a/devtools/create_ultima/archive.cpp +++ b/devtools/create_ultima/archive.cpp @@ -54,6 +54,8 @@ void Archive::save() { _file.writeString(ae._name.c_str()); _file.writeLong(ae._offset); _file.writeWord(ae._size); + + dataOffset += ae._size; } if (_file.pos() % 2) _file.writeByte(0);