Skip to content

Commit

Permalink
oops. tolerate default array values from editboxes. shit is weird, i …
Browse files Browse the repository at this point in the history
…thought they only ever returned string??
  • Loading branch information
Fusselwurm committed Jul 20, 2020
1 parent 519bfb2 commit 0ec4763
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addons/common/functions/fnc_parseCsv.sqf
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#include "..\script_component.hpp"

/*
parse list of strings
parse list of strings into an array. tolerates arrays, will return input value in that case
*/
params [
["_rawValue", "", [""]]
["_rawValue", "", ["", []]]
];

if (_rawValue isEqualType []) exitWith { _rawValue };

private _delimiter = ",";

private _firstChar = _rawValue select [0, 1];
Expand Down

0 comments on commit 0ec4763

Please sign in to comment.