From 142a15b9c65cc08b083d16bcb53c1bc0f266fa22 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 26 Apr 2012 02:03:43 +0000 Subject: [PATCH] - Fixed: The length of the SFLG chunk was used incorrectly, resulting in erroneous flag setting if such a chunk was present. SVN r3593 (trunk) --- src/p_acs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index ac06041ee..3667d0505 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -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) {