mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
- Fixed: When processing the SFLG and SVCT chunks in ACS objects, the script number must be
read as a signed integer. SVN r3402 (trunk)
This commit is contained in:
parent
64fb6410cf
commit
f2f9bd800d
1 changed files with 3 additions and 2 deletions
|
@ -1400,6 +1400,7 @@ void FBehavior::LoadScriptsDirectory ()
|
|||
BYTE *b;
|
||||
DWORD *dw;
|
||||
WORD *w;
|
||||
SWORD *sw;
|
||||
ScriptPtr2 *po; // Old
|
||||
ScriptPtr1 *pi; // Intermediate
|
||||
ScriptPtr3 *pe; // LittleEnhanced
|
||||
|
@ -1522,7 +1523,7 @@ void FBehavior::LoadScriptsDirectory ()
|
|||
scripts.dw += 2;
|
||||
for (i = max; i > 0; --i, scripts.w += 2)
|
||||
{
|
||||
ScriptPtr *ptr = const_cast<ScriptPtr *>(FindScript (LittleShort(scripts.w[0])));
|
||||
ScriptPtr *ptr = const_cast<ScriptPtr *>(FindScript (LittleShort(scripts.sw[0])));
|
||||
if (ptr != NULL)
|
||||
{
|
||||
ptr->Flags = LittleShort(scripts.w[1]);
|
||||
|
@ -1538,7 +1539,7 @@ void FBehavior::LoadScriptsDirectory ()
|
|||
scripts.dw += 2;
|
||||
for (i = max; i > 0; --i, scripts.w += 2)
|
||||
{
|
||||
ScriptPtr *ptr = const_cast<ScriptPtr *>(FindScript (LittleShort(scripts.w[0])));
|
||||
ScriptPtr *ptr = const_cast<ScriptPtr *>(FindScript (LittleShort(scripts.sw[0])));
|
||||
if (ptr != NULL)
|
||||
{
|
||||
ptr->VarCount = LittleShort(scripts.w[1]);
|
||||
|
|
Loading…
Reference in a new issue