From c89dba6b719024b6a3d5df2c5da5deb81771003a Mon Sep 17 00:00:00 2001 From: Josuan Albin Date: Tue, 24 Oct 2017 13:20:55 +0200 Subject: [PATCH] Fix loadout deleting not triggering curSel change --- addons/arsenal/functions/fnc_buttonLoadoutsDelete.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/arsenal/functions/fnc_buttonLoadoutsDelete.sqf b/addons/arsenal/functions/fnc_buttonLoadoutsDelete.sqf index ae44da578d..1729e32ce1 100644 --- a/addons/arsenal/functions/fnc_buttonLoadoutsDelete.sqf +++ b/addons/arsenal/functions/fnc_buttonLoadoutsDelete.sqf @@ -14,5 +14,6 @@ private _loadoutName = _contentPanelCtrl lnbText [_contentPanelCursSel, 1]; _data deleteAt (_data find ((_data select {_x select 0 == _loadoutName}) select 0)); _contentPanelCtrl lnbDeleteRow _contentPanelCursSel; +_contentPanelCtrl lnbSetCurSelRow (_contentPanelCursSel - 1); [(findDisplay IDD_ace_arsenal), format ["Loadout '%1' was deleted", _loadoutName]] call FUNC(message); // TBL \ No newline at end of file