summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-12 22:08:40 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-12 22:10:25 +0200
commit4ca7304e432285184e596df105cb6b6987cbee3a (patch)
treeefa8b52fd7eb9c185578628c0498bff90ad5222a
parentMerge pull request #237 from Nick007J/master (diff)
downloadre3-4ca7304e432285184e596df105cb6b6987cbee3a.tar
re3-4ca7304e432285184e596df105cb6b6987cbee3a.tar.gz
re3-4ca7304e432285184e596df105cb6b6987cbee3a.tar.bz2
re3-4ca7304e432285184e596df105cb6b6987cbee3a.tar.lz
re3-4ca7304e432285184e596df105cb6b6987cbee3a.tar.xz
re3-4ca7304e432285184e596df105cb6b6987cbee3a.tar.zst
re3-4ca7304e432285184e596df105cb6b6987cbee3a.zip
Diffstat (limited to '')
-rw-r--r--src/peds/Ped.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 1ecb3037..cfc06f73 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -14586,7 +14586,7 @@ CPed::SetEnterCar(CVehicle *car, uint32 unused)
void
CPed::SetRadioStation(void)
{
- uint8 radiosPerRadioCategories[10][4] = {
+ static const uint8 radiosPerRadioCategories[10][4] = {
{JAH_RADIO, RISE_FM, GAME_FM, MSX_FM},
{HEAD_RADIO, DOUBLE_CLEF, LIPS_106, FLASHBACK},
{RISE_FM, GAME_FM, MSX_FM, FLASHBACK},
@@ -14598,7 +14598,7 @@ CPed::SetRadioStation(void)
{HEAD_RADIO, DOUBLE_CLEF, LIPS_106, FLASHBACK},
{CHATTERBOX, HEAD_RADIO, LIPS_106, GAME_FM}
};
- uint8 orderInCat;
+ uint8 orderInCat = 0; // BUG: this wasn't initialized
if (IsPlayer() || !m_pMyVehicle || m_pMyVehicle->pDriver != this)
return;