Revisión | 8844950c6771f6d395ea4bc012ef1d2707448cfc (tree) |
---|---|
Tiempo | 2014-12-27 05:41:01 |
Autor | Randy Heit <rheit@user...> |
Commiter | Randy Heit |
Read script number as signed when parsing SARY chunks
- Fixed: Script arrays didn't work in named scripts because the loader
@@ -2927,7 +2927,7 @@ | ||
2927 | 2927 | int size = LittleLong(scripts.dw[1]); |
2928 | 2928 | if (size >= 6) |
2929 | 2929 | { |
2930 | - int script_num = LittleShort(scripts.w[4]); | |
2930 | + int script_num = LittleShort(scripts.sw[4]); | |
2931 | 2931 | ScriptPtr *ptr = const_cast<ScriptPtr *>(FindScript(script_num)); |
2932 | 2932 | if (ptr != NULL) |
2933 | 2933 | { |