diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-09 15:35:27 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-09 15:35:27 +0100 |
commit | 97c95b763961460244c8a0c4c1e6231277112038 (patch) | |
tree | 66d9b5128531c834798bf4390c1c0856b37daae6 /src/control/Script5.cpp | |
parent | fix (diff) | |
download | re3-97c95b763961460244c8a0c4c1e6231277112038.tar re3-97c95b763961460244c8a0c4c1e6231277112038.tar.gz re3-97c95b763961460244c8a0c4c1e6231277112038.tar.bz2 re3-97c95b763961460244c8a0c4c1e6231277112038.tar.lz re3-97c95b763961460244c8a0c4c1e6231277112038.tar.xz re3-97c95b763961460244c8a0c4c1e6231277112038.tar.zst re3-97c95b763961460244c8a0c4c1e6231277112038.zip |
Diffstat (limited to 'src/control/Script5.cpp')
-rw-r--r-- | src/control/Script5.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/control/Script5.cpp b/src/control/Script5.cpp index c594b9c8..b49e1c79 100644 --- a/src/control/Script5.cpp +++ b/src/control/Script5.cpp @@ -2740,6 +2740,9 @@ void CTheScripts::ReadObjectNamesFromScript() { int32 varSpace = GetSizeOfVariableSpace(); uint32 ip = varSpace + 8; + NumSaveVars = Read4BytesFromScript(&ip); + SavedVarIndices = (short*)&ScriptParams[ip]; + ip += 2 * NumSaveVars; NumberOfUsedObjects = Read2BytesFromScript(&ip); ip += 2; for (uint16 i = 0; i < NumberOfUsedObjects; i++) { @@ -2784,7 +2787,8 @@ void CTheScripts::ReadMultiScriptFileOffsetsFromScript() uint32 ip = varSpace + 3; int32 objectSize = Read4BytesFromScript(&ip); ip = objectSize + 8; - MainScriptSize = Read4BytesFromScript(&ip); + NumTrueGlobals = Read2BytesFromScript(&ip); + MostGlobals = Read2BytesFromScript(&ip); LargestMissionScriptSize = Read4BytesFromScript(&ip); NumberOfMissionScripts = Read2BytesFromScript(&ip); NumberOfExclusiveMissionScripts = Read2BytesFromScript(&ip); |