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
Sven Eberhardt 2013-07-04 23:18:52 +02:00
parent 324a1f03c0
commit 12bce5ba4f
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) )