summaryrefslogtreecommitdiffstats
path: root/src/control/Pickups.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-17 12:21:31 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-17 12:21:31 +0200
commit3ba57c5f6a9f7fb678181a39010dcec6a05b5121 (patch)
tree5c8ab33d768717a4ddc8764736c0cc3c9cd791a5 /src/control/Pickups.cpp
parentMerge pull request #244 from Nick007J/master (diff)
downloadre3-3ba57c5f6a9f7fb678181a39010dcec6a05b5121.tar
re3-3ba57c5f6a9f7fb678181a39010dcec6a05b5121.tar.gz
re3-3ba57c5f6a9f7fb678181a39010dcec6a05b5121.tar.bz2
re3-3ba57c5f6a9f7fb678181a39010dcec6a05b5121.tar.lz
re3-3ba57c5f6a9f7fb678181a39010dcec6a05b5121.tar.xz
re3-3ba57c5f6a9f7fb678181a39010dcec6a05b5121.tar.zst
re3-3ba57c5f6a9f7fb678181a39010dcec6a05b5121.zip
Diffstat (limited to 'src/control/Pickups.cpp')
-rw-r--r--src/control/Pickups.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp
index 3ba01e46..e095ec8e 100644
--- a/src/control/Pickups.cpp
+++ b/src/control/Pickups.cpp
@@ -986,7 +986,7 @@ VALIDATESAVEBUF(size)
void
CPickups::Save(uint8 *buf, uint32 *size)
{
- *size = sizeof(CPickup) * NUMPICKUPS + sizeof(uint16) + sizeof(uint16) + sizeof(uint32) * NUMCOLLECTEDPICKUPS;
+ *size = sizeof(aPickUps) + sizeof(uint16) + sizeof(uint16) + sizeof(aPickUpsCollected);
INITSAVEBUF