mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 19:19:00 +00:00
Fix uninitialized orderInCat
This commit is contained in:
parent
225ad5d78e
commit
4ca7304e43
1 changed files with 2 additions and 2 deletions
|
@ -14586,7 +14586,7 @@ CPed::SetEnterCar(CVehicle *car, uint32 unused)
|
||||||
void
|
void
|
||||||
CPed::SetRadioStation(void)
|
CPed::SetRadioStation(void)
|
||||||
{
|
{
|
||||||
uint8 radiosPerRadioCategories[10][4] = {
|
static const uint8 radiosPerRadioCategories[10][4] = {
|
||||||
{JAH_RADIO, RISE_FM, GAME_FM, MSX_FM},
|
{JAH_RADIO, RISE_FM, GAME_FM, MSX_FM},
|
||||||
{HEAD_RADIO, DOUBLE_CLEF, LIPS_106, FLASHBACK},
|
{HEAD_RADIO, DOUBLE_CLEF, LIPS_106, FLASHBACK},
|
||||||
{RISE_FM, GAME_FM, MSX_FM, FLASHBACK},
|
{RISE_FM, GAME_FM, MSX_FM, FLASHBACK},
|
||||||
|
@ -14598,7 +14598,7 @@ CPed::SetRadioStation(void)
|
||||||
{HEAD_RADIO, DOUBLE_CLEF, LIPS_106, FLASHBACK},
|
{HEAD_RADIO, DOUBLE_CLEF, LIPS_106, FLASHBACK},
|
||||||
{CHATTERBOX, HEAD_RADIO, LIPS_106, GAME_FM}
|
{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)
|
if (IsPlayer() || !m_pMyVehicle || m_pMyVehicle->pDriver != this)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue