- Fixed: The length of the SFLG chunk was used incorrectly, resulting in erroneous flag setting

if such a chunk was present.

SVN r3593 (trunk)
This commit is contained in:
Randy Heit 2012-04-26 02:03:43 +00:00
parent ec84437212
commit 142a15b9c6

View file

@ -1589,7 +1589,7 @@ void FBehavior::LoadScriptsDirectory ()
scripts.b = FindChunk (MAKE_ID('S','F','L','G'));
if (scripts.dw != NULL)
{
max = scripts.dw[1];
max = scripts.dw[1] / 4;
scripts.dw += 2;
for (i = max; i > 0; --i, scripts.w += 2)
{