diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-03-22 11:30:11 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-03-22 11:30:11 -0600 |
| commit | 4c961039cd95fbd46a74d35373cea25f5296050f (patch) | |
| tree | 27ca48aad0ed4c6122fe02c908c4104803c5b0b3 /src/Companion.cpp | |
| parent | 12b45a304d5dd3e2f4b1940fad67a86d4950ea06 (diff) | |
Fixed assets that doesnt have offset
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 4 |
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; } |
