Skip to content

Commit

Permalink
fixed ending dialog population breaking on double defined entries (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joecuronium authored Jan 27, 2022
1 parent 1b77e06 commit b0b916f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions components/zeus_ui/fn_endingDialog.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
private _endingArray = "true" configClasses (missionConfigFile >> "CfgDebriefing"); //Gather all endings

private _endingClasses = [];
private _endingTitles = [];
private _endingNames = [];

{
private _title = getText (_x >> "Title");

_endingTitles pushBackUnique _title;
private _subtitle = getText (_x >> "subtitle");

private _name = _title + " - " + _subtitle;

_endingNames pushBackUnique _name;

private _class = configName (_x);

Expand All @@ -19,7 +23,7 @@ private _endingTitles = [];

["Ending Dialog",
[
["COMBO", "Choose Ending:",[_endingClasses, _endingTitles,0]]
["COMBO", "Choose Ending:",[_endingClasses, _endingNames,0]]
],
{
params ["_dialogValues"];
Expand Down

0 comments on commit b0b916f

Please sign in to comment.