diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-06 01:01:03 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-06 01:01:03 +0200 |
commit | 7f8a78e5decdf23bf0d06674c336f4e3169eaa6a (patch) | |
tree | ee0c2b666cacfd6f6a0ee9f36eca6237a78a6df2 /src/audio/AudioScriptObject.cpp | |
parent | Merge branch 'master' into garages_dev (diff) | |
download | re3-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.cpp | 2 |
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); |