Merge pull request #2297 from Capostrophic/esm

Make sure the record hasn't ended in getHString hack (bug #4938)
pull/541/head
Bret Curtis 6 years ago committed by GitHub
commit a5504f8cc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,6 +49,7 @@
Bug #4911: Editor: QOpenGLContext::swapBuffers() warning with Qt5
Bug #4916: Specular power (shininess) material parameter is ignored when shaders are used.
Bug #4922: Werewolves can not attack if the transformation happens during attack
Bug #4938: Strings from subrecords with actually empty headers can't be empty
Feature #2229: Improve pathfinding AI
Feature #3442: Default values for fallbacks from ini file
Feature #3610: Option to invert X axis

@ -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)
if (mCtx.leftSub == 0 && mCtx.leftRec != 0)
{
// Skip the following zero byte
mCtx.leftRec--;

Loading…
Cancel
Save