From 3c6ac2f3e632f97f750c086e3926cb6181b02812 Mon Sep 17 00:00:00 2001 From: Joecuronium <83242905+Joecuronium@users.noreply.github.com> Date: Thu, 27 Jan 2022 04:03:28 +0100 Subject: [PATCH] fixed ending dialog population breaking on double defined entries --- components/zeus_ui/fn_endingDialog.sqf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/components/zeus_ui/fn_endingDialog.sqf b/components/zeus_ui/fn_endingDialog.sqf index 39494ac3..e7dc1fff 100644 --- a/components/zeus_ui/fn_endingDialog.sqf +++ b/components/zeus_ui/fn_endingDialog.sqf @@ -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); @@ -19,7 +23,7 @@ private _endingTitles = []; ["Ending Dialog", [ - ["COMBO", "Choose Ending:",[_endingClasses, _endingTitles,0]] + ["COMBO", "Choose Ending:",[_endingClasses, _endingNames,0]] ], { params ["_dialogValues"];