mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 14:22:13 +00:00
Read script number as signed when parsing SARY chunks
- Fixed: Script arrays didn't work in named scripts because the loader read the script number as an unsigned word, hence it would never find named scripts, since they are stored with negative numbers.
This commit is contained in:
parent
4f383e5aa7
commit
ec98937c88
1 changed files with 1 additions and 1 deletions
|
@ -2393,7 +2393,7 @@ void FBehavior::LoadScriptsDirectory ()
|
|||
int size = LittleLong(scripts.dw[1]);
|
||||
if (size >= 6)
|
||||
{
|
||||
int script_num = LittleShort(scripts.w[4]);
|
||||
int script_num = LittleShort(scripts.sw[4]);
|
||||
ScriptPtr *ptr = const_cast<ScriptPtr *>(FindScript(script_num));
|
||||
if (ptr != NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue