Skip to content

Commit

Permalink
fix stock mission filter on dedicated server (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 authored Mar 2, 2019
1 parent 2d9ffad commit 80aad23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/ui/fnc_initDisplayRemoteMissions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 80aad23

Please sign in to comment.