Skip to content

Commit

Permalink
fix(libespm): disable search for 0 formId in CombineBrowser (#2296)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Jan 30, 2025
1 parent 7ccbd2e commit 148ba42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libespm/src/CombineBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ int32_t CombineBrowser::Impl::GetFileIndex(const char* fileName) const noexcept

LookupResult CombineBrowser::LookupById(uint32_t combFormId) const noexcept
{
// Otherwise, we'll find a TES4 record in Skyrim.esm which is not relevant
// for CombineBrowser use cases
if (combFormId == 0) {
return LookupResult();
}

const RecordHeader* resRec = nullptr;
uint8_t resFileIdx = 0;
for (size_t i = 0; i < pImpl->numSources; ++i) {
Expand Down

0 comments on commit 148ba42

Please sign in to comment.