summaryrefslogtreecommitdiff
path: root/src/Companion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Companion.cpp')
-rw-r--r--src/Companion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp
index af4d778..fcf5668 100644
--- a/src/Companion.cpp
+++ b/src/Companion.cpp
@@ -681,8 +681,8 @@ void Companion::Process() {
this->ExtractNode(node, output, wrapper);
}
} else {
- const auto offset = assetNode["offset"].as<uint32_t>();
- if(gCurrentFileOffset) {
+ if(gCurrentFileOffset && assetNode["offsets"]) {
+ const auto offset = assetNode["offset"].as<uint32_t>();
if (!IS_SEGMENTED(offset)) {
assetNode["offset"] = (gCurrentSegmentNumber << 24) | offset;
}