Skip to content

Commit

Permalink
xrGame/HUDSound.cpp: don't crash if hud_step_sound_vol_k is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 5, 2019
1 parent 1027ed7 commit cdaa532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrGame/HudSound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ float psHUDStepSoundVolume = 1.0f;
void InitHudSoundSettings()
{
psHUDSoundVolume = pSettings->r_float("hud_sound", "hud_sound_vol_k");
psHUDStepSoundVolume = pSettings->r_float("hud_sound", "hud_step_sound_vol_k");
psHUDStepSoundVolume = READ_IF_EXISTS(pSettings, r_float, "hud_sound", "hud_step_sound_vol_k", 1.0f);
}

void HUD_SOUND_ITEM::LoadSound(LPCSTR section, LPCSTR line, HUD_SOUND_ITEM& hud_snd, int type)
Expand Down

0 comments on commit cdaa532

Please sign in to comment.