Skip to content

Commit 370bec6

Browse files
committed
fixed GL nodes loader for maps loaded from mounted folders.
Due to how the reader is created, READER_NEW will not work for it, it needs to force READER_CACHED.
1 parent 3a5838c commit 370bec6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/maploader/glnodes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,8 @@ bool MapLoader::LoadGLNodes(MapData * map)
900900
break;
901901
}
902902
else
903-
gwalumps[i] = f_gwa->GetEntryReader(li + i + 1, FileSys::READER_NEW, FileSys::READERFLAG_SEEKABLE);
903+
// This is a special case. The container for the map WAD is not set up to create new file handles for itself so this needs to cache the content here.
904+
gwalumps[i] = f_gwa->GetEntryReader(li + i + 1, FileSys::READER_CACHED, FileSys::READERFLAG_SEEKABLE);
904905
}
905906
if (result) result = DoLoadGLNodes(gwalumps);
906907
}

0 commit comments

Comments
 (0)