From 4c961039cd95fbd46a74d35373cea25f5296050f Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Fri, 22 Mar 2024 11:30:11 -0600 Subject: Fixed assets that doesnt have offset --- src/Companion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Companion.cpp') 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(); - if(gCurrentFileOffset) { + if(gCurrentFileOffset && assetNode["offsets"]) { + const auto offset = assetNode["offset"].as(); if (!IS_SEGMENTED(offset)) { assetNode["offset"] = (gCurrentSegmentNumber << 24) | offset; } -- cgit v1.2.3