summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-26 06:53:30 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-26 06:53:30 +0100
commit441b3864f3485f3b63d5010c5c27e3edab79adae (patch)
tree9857311db540e9f7ba64302fb433f0ec65a9df95 /src
parentFix weapon pickup sound (diff)
downloadre3-441b3864f3485f3b63d5010c5c27e3edab79adae.tar
re3-441b3864f3485f3b63d5010c5c27e3edab79adae.tar.gz
re3-441b3864f3485f3b63d5010c5c27e3edab79adae.tar.bz2
re3-441b3864f3485f3b63d5010c5c27e3edab79adae.tar.lz
re3-441b3864f3485f3b63d5010c5c27e3edab79adae.tar.xz
re3-441b3864f3485f3b63d5010c5c27e3edab79adae.tar.zst
re3-441b3864f3485f3b63d5010c5c27e3edab79adae.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio/AudioManager.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index 2591d6a8..376a7f60 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -144,6 +144,13 @@ public:
bool m_bDistanceCalculated;
float m_fDistance;
CPed *m_pPed;
+
+ cPedParams()
+ {
+ m_bDistanceCalculated = false;
+ m_fDistance = 0.0f;
+ m_pPed = nil;
+ }
};
class cVehicleParams
@@ -162,7 +169,7 @@ public:
m_VehicleType = -1;
m_bDistanceCalculated = false;
m_fDistance = 0.0f;
- m_pVehicle = 0;
+ m_pVehicle = nil;
m_pTransmission = nil;
m_nIndex = 0;
m_fVelocityChange = 0.0f;