mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-14 11:30:34 +00:00
Fix some UBs
This commit is contained in:
parent
7056f9954f
commit
810bad9fd8
8 changed files with 36 additions and 21 deletions
|
@ -1223,8 +1223,11 @@ cMusicManager::DisplayRadioStationName()
|
|||
gNumRetunePresses++;
|
||||
}
|
||||
else
|
||||
#ifdef FIX_BUGS
|
||||
track = m_nFrontendTrack == NO_TRACK ? POLICE_RADIO : m_nFrontendTrack;
|
||||
#else
|
||||
track = m_nFrontendTrack;
|
||||
|
||||
#endif
|
||||
|
||||
wchar* string = nil;
|
||||
switch (track) {
|
||||
|
|
|
@ -29,7 +29,7 @@ public:
|
|||
uint32 m_nResetTime;
|
||||
bool m_bRadioSetByScript;
|
||||
uint8 m_nRadioStation;
|
||||
uint32 m_nRadioPosition;
|
||||
int32 m_nRadioPosition;
|
||||
uint32 m_nRadioInCar;
|
||||
uint32 m_nFrontendTrack;
|
||||
uint32 m_nPlayingTrack;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue