summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-07-07 17:34:02 +0200
committerwithmorten <morten.with@gmail.com>2021-07-10 02:06:43 +0200
commit6f103a3b8246ed4a883abaea63c6682cdefc6752 (patch)
tree0a647e32813ec2990b3b3ecc647acfc8bb26c8dc /src/peds/Ped.cpp
parentUse CPad functions to check key states in script loader (diff)
downloadre3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar
re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.gz
re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.bz2
re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.lz
re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.xz
re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.zst
re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.zip
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r--src/peds/Ped.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 44712fa0..7fe2520d 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -9585,19 +9585,19 @@ CPed::Say(uint16 audio, int32 time)
void
CPed::Save(uint8*& buf)
{
- SkipSaveBuf(buf, 52);
+ ZeroSaveBuf(buf, 52);
CopyToBuf(buf, GetPosition().x);
CopyToBuf(buf, GetPosition().y);
CopyToBuf(buf, GetPosition().z);
- SkipSaveBuf(buf, 288);
+ ZeroSaveBuf(buf, 288);
CopyToBuf(buf, CharCreatedBy);
- SkipSaveBuf(buf, 499);
+ ZeroSaveBuf(buf, 499);
CopyToBuf(buf, m_fHealth);
CopyToBuf(buf, m_fArmour);
- SkipSaveBuf(buf, 172);
+ ZeroSaveBuf(buf, 172);
for (int i = 0; i < 10; i++) // has to be hardcoded
m_weapons[i].Save(buf);
- SkipSaveBuf(buf, 252);
+ ZeroSaveBuf(buf, 252);
}
void