mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 12:06:40 +00:00
Actually fix bug 4938
This commit is contained in:
parent
01ce8b580d
commit
2c956398c1
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ std::string ESMReader::getHString()
|
|||
// them. For some reason, they break the rules, and contain a byte
|
||||
// (value 0) even if the header says there is no data. If
|
||||
// Morrowind accepts it, so should we.
|
||||
if (mCtx.leftSub == 0 && mCtx.leftRec != 0)
|
||||
if (mCtx.leftSub == 0 && !mEsm->peek())
|
||||
{
|
||||
// Skip the following zero byte
|
||||
mCtx.leftRec--;
|
||||
|
|
Loading…
Reference in a new issue