summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioScriptObject.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-06 01:01:03 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-06 01:01:03 +0200
commit7f8a78e5decdf23bf0d06674c336f4e3169eaa6a (patch)
treeee0c2b666cacfd6f6a0ee9f36eca6237a78a6df2 /src/audio/AudioScriptObject.cpp
parentMerge branch 'master' into garages_dev (diff)
downloadre3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.tar
re3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.tar.gz
re3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.tar.bz2
re3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.tar.lz
re3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.tar.xz
re3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.tar.zst
re3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.zip
Diffstat (limited to 'src/audio/AudioScriptObject.cpp')
-rw-r--r--src/audio/AudioScriptObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/AudioScriptObject.cpp b/src/audio/AudioScriptObject.cpp
index 0ae3834a..da9e1d2e 100644
--- a/src/audio/AudioScriptObject.cpp
+++ b/src/audio/AudioScriptObject.cpp
@@ -61,7 +61,7 @@ cAudioScriptObject::SaveAllAudioScriptObjects(uint8 *buf, uint32 *size)
INITSAVEBUF
int32 pool_size = CPools::GetAudioScriptObjectPool()->GetNoOfUsedSpaces();
- *size = SAVE_HEADER_SIZE + pool_size * (sizeof(cAudioScriptObject) + sizeof(int32));
+ *size = SAVE_HEADER_SIZE + sizeof(int32) + pool_size * (sizeof(cAudioScriptObject) + sizeof(int32));
WriteSaveHeader(buf, 'A', 'U', 'D', '\0', *size - SAVE_HEADER_SIZE);
WriteSaveBuf(buf, pool_size);