Skip to content

Commit

Permalink
Common - getDLC should return a number (#10621)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson authored Jan 5, 2025
1 parent 847e2ad commit e6a46cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/common/functions/fnc_getDLC.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,8 @@ private _name = switch (_id) do {
default { "" };
};

if !(_id isEqualType 0) then {
_id = parseNumber _id;
};

[_name, _id]

0 comments on commit e6a46cc

Please sign in to comment.