Fix preset slots above 7 not being selectable.
This commit is contained in:
parent
eeefaf8090
commit
9b5f26f81e
1 changed files with 2 additions and 2 deletions
|
|
@ -156,12 +156,12 @@ Class MariFXHandler : StaticEventHandler
|
|||
PlayerInfo p = players[consoleplayer];
|
||||
if ( e.Name ~== "loadmfxpreset" )
|
||||
{
|
||||
int slot = clamp(mfx_presetslot,0,7);
|
||||
int slot = clamp(mfx_presetslot,0,MFX_NUMPRESETS-1);
|
||||
MFXPresetUtility.LoadPreset(slot);
|
||||
}
|
||||
else if ( e.Name ~== "savemfxpreset" )
|
||||
{
|
||||
int slot = clamp(mfx_presetslot,0,7);
|
||||
int slot = clamp(mfx_presetslot,0,MFX_NUMPRESETS-1);
|
||||
MFXPresetUtility.SavePreset(slot);
|
||||
}
|
||||
else if ( e.Name ~== "resetmfxvars" )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue