diff --git a/zscript/mfx_handler.zsc b/zscript/mfx_handler.zsc index 66a6f13..ec278ac 100644 --- a/zscript/mfx_handler.zsc +++ b/zscript/mfx_handler.zsc @@ -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" )