From 503c39da82ae0d173fe617f7d9a1a492f7a2892a Mon Sep 17 00:00:00 2001 From: commy2 Date: Sat, 2 Mar 2019 00:14:38 +0100 Subject: [PATCH] fix stock mission filter on dedicated server --- addons/ui/fnc_initDisplayRemoteMissions.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/ui/fnc_initDisplayRemoteMissions.sqf b/addons/ui/fnc_initDisplayRemoteMissions.sqf index 5b9e836a0..4e2b886bc 100644 --- a/addons/ui/fnc_initDisplayRemoteMissions.sqf +++ b/addons/ui/fnc_initDisplayRemoteMissions.sqf @@ -125,8 +125,9 @@ _display setVariable [QFUNC(filter), { { _x params ["_name", "_value", "_data", "_color"]; + private _classname = _data splitString "." select 0; - if (toLower _name find _filter != -1 && {_showStockMissions || {!(_data in _stockMissions)}}) then { + if (toLower _name find _filter != -1 && {_showStockMissions || {!(_classname in _stockMissions)}}) then { private _index = _ctrlMissions lbAdd _name; _ctrlMissions lbSetValue [_index, _value]; _ctrlMissions lbSetData [_index, _data];