1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-17 21:46:38 +00:00

Local content file index is actually -1

This commit is contained in:
Dave Corley 2025-07-20 08:53:14 +00:00
parent dcac39aefd
commit 0f0a402ead

View file

@ -304,7 +304,7 @@ void CSMDoc::WriteCellCollectionStage::writeReferences(
{
CSMWorld::CellRef refRecord = ref.get();
const bool isLocal = refRecord.mRefNum.mContentFile == 0;
const bool isLocal = refRecord.mRefNum.mContentFile == -1;
// -1 is the current file, saved indices are 1-based
refRecord.mRefNum.mContentFile++;