From 70130a571d9bdb693dd12fd0346da901ca4bb72f Mon Sep 17 00:00:00 2001 From: Dystopian Date: Fri, 23 Nov 2018 02:29:53 +0400 Subject: [PATCH] Delete duplicates in console history --- addons/diagnostic/fnc_initExtendedDebugConsole.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/diagnostic/fnc_initExtendedDebugConsole.sqf b/addons/diagnostic/fnc_initExtendedDebugConsole.sqf index 7547a323b..ccfe61395 100644 --- a/addons/diagnostic/fnc_initExtendedDebugConsole.sqf +++ b/addons/diagnostic/fnc_initExtendedDebugConsole.sqf @@ -159,6 +159,8 @@ FUNC(logStatement) = { private _prevStatements = profileNamespace getVariable [QGVAR(statements), []]; if !((_prevStatements param [0, ""]) isEqualTo _statement) then { + _prevStatements deleteAt (_prevStatements find _statement); + // pushFront reverse _prevStatements; _prevStatements pushBack _statement;