From b7aab678460c3749e1d36dc588241ba949918d56 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Tue, 5 Jul 2022 04:48:53 +0700 Subject: [PATCH] Change db command to new AcediaCore changes --- sources/Commands/ACommandDB.uc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sources/Commands/ACommandDB.uc b/sources/Commands/ACommandDB.uc index 3936e0c..4711a30 100644 --- a/sources/Commands/ACommandDB.uc +++ b/sources/Commands/ACommandDB.uc @@ -399,10 +399,11 @@ protected function DisplaySize( protected function DisplayKeys( Database.DBQueryResult result, - DynamicArray keys, + ArrayList keys, Database source) { local int i; + local Text nextKey; local EPlayer instigator; local ConsoleWriter console; @@ -420,7 +421,9 @@ protected function DisplayKeys( if (i > 0) { console.ResetColor().Write(P(", ")); } - console.UseColor(_.color.jPropertyName).Write(keys.GetText(i)); + nextKey = keys.GetText(i); + console.UseColor(_.color.jPropertyName).Write(nextKey); + _.memory.Free(nextKey); } console.Flush(); _.memory.Free(instigator);