1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-10-04 12:26:37 +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 // them. For some reason, they break the rules, and contain a byte
// (value 0) even if the header says there is no data. If // (value 0) even if the header says there is no data. If
// Morrowind accepts it, so should we. // Morrowind accepts it, so should we.
if (mCtx.leftSub == 0 && mCtx.leftRec != 0) if (mCtx.leftSub == 0 && !mEsm->peek())
{ {
// Skip the following zero byte // Skip the following zero byte
mCtx.leftRec--; mCtx.leftRec--;