X-Git-Url: https://sfsrealm.hopto.org/projects/gitweb.cgi?p=SFmpqapi.git;a=blobdiff_plain;f=SFmpqapi.cpp;fp=SFmpqapi.cpp;h=0f5acaf1bb409271b0cfe73f57003e7f96a95d48;hp=fecddf9059723e4d90794d59133545c45ff1a1ed;hb=cd5a40ab4404ee1b938562561d9f9a40dd3dab75;hpb=4f5a1ae224e175a6fb2b2ef19151f17f3669eb3e diff --git a/SFmpqapi.cpp b/SFmpqapi.cpp index fecddf9..0f5acaf 100644 --- a/SFmpqapi.cpp +++ b/SFmpqapi.cpp @@ -564,7 +564,7 @@ BOOL SFMPQAPI WINAPI SFileOpenFileAsArchive(MPQHANDLE hSourceMPQ, LPCSTR lpFileN } DWORD dwMpqStart; MPQARCHIVE *mpqOpenArc; - dwMpqStart = mpqOpenArc->dwMPQStart + mpqArcFile.lpBlockEntry->dwFileOffset; + dwMpqStart = mpqArcFile.lpParentArc->dwMPQStart + mpqArcFile.lpBlockEntry->dwFileOffset; flen = mpqArcFile.lpBlockEntry->dwFullSize; dwMpqStart = FindMpqHeaderAtLocation(hFile,dwMpqStart,flen); if (dwMpqStart==0xFFFFFFFF) {