mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
S_SoundTestPlay: Exit early into S_SoundTestStop if current entry is NULL
This commit is contained in:
parent
53b24067ee
commit
3d40e83700
1 changed files with 7 additions and 8 deletions
|
|
@ -1403,19 +1403,18 @@ conclusion:
|
|||
|
||||
if (soundtest.playing == true)
|
||||
{
|
||||
if (newdef == NULL)
|
||||
{
|
||||
S_SoundTestStop(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
S_SoundTestPlay();
|
||||
}
|
||||
S_SoundTestPlay();
|
||||
}
|
||||
}
|
||||
|
||||
void S_SoundTestPlay(void)
|
||||
{
|
||||
if (soundtest.current == NULL)
|
||||
{
|
||||
S_SoundTestStop(false);
|
||||
return;
|
||||
}
|
||||
|
||||
soundtest.privilegedrequest = true;
|
||||
|
||||
S_StopMusic();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue