forked from Mirrors/openclonk
Fix loading from child groups when the mother needs to re-set its file pointer.
Fixes a bug with loading the shader file from scenario local Graphics.ocg on network clients. I think I also heard a few more sounds after the fix, so maybe they used random access into child groups too.stable-5.4
parent
324a1f03c0
commit
12bce5ba4f
|
@ -2098,7 +2098,7 @@ bool C4Group::EnsureChildFilePtr(C4Group *pChild)
|
|||
if ( !ItemIdentical( StdFile.Name, szChildPath ) )
|
||||
{
|
||||
// Reopen correct child stdfile
|
||||
if ( !SetFilePtr2Entry( GetFilename(pChild->FileName) ) )
|
||||
if ( !SetFilePtr2Entry( GetFilename(pChild->FileName), true ) )
|
||||
return false;
|
||||
// Advance to child's old file ptr
|
||||
if ( !AdvanceFilePtr( pChild->EntryOffset + pChild->FilePtr ) )
|
||||
|
|
Loading…
Reference in New Issue