1
0
Fork 0
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:
Alexei Dobrohotov 2019-05-15 21:41:49 +03:00 committed by GitHub
parent 01ce8b580d
commit 2c956398c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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