From 83bd8b255bc18501a43e03efd10fab557a0fe68f Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 5 Mar 2024 18:20:48 -0500 Subject: [PATCH] Core/Locales: Store empty localized strings present in database Port From (https://github.com/TrinityCore/TrinityCore/commit/74ec1d3cfb3172a7bb3c2d2317396ff82245418e) --- Source/Game/Globals/ObjectManager.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Game/Globals/ObjectManager.cs b/Source/Game/Globals/ObjectManager.cs index 3097eb05d..d7b1500f3 100644 --- a/Source/Game/Globals/ObjectManager.cs +++ b/Source/Game/Globals/ObjectManager.cs @@ -156,8 +156,10 @@ namespace Game } public static void AddLocaleString(string value, Locale locale, StringArray data) { - if (!string.IsNullOrEmpty(value)) - data[(int)locale] = value; + if (value == null) + value = ""; + + data[(int)locale] = value; } public static void GetLocaleString(StringArray data, Locale locale, ref string value) {