Don't crash when joining a game after asset installation.

This commit is contained in:
Matthias Mailänder
2022-04-13 13:18:22 +02:00
committed by Pavel Penev
parent 0f90713aba
commit 648c56bca1
9 changed files with 12 additions and 36 deletions

View File

@@ -21,7 +21,6 @@ using OpenRA.Graphics;
using OpenRA.Primitives;
using OpenRA.Support;
using OpenRA.Traits;
using OpenRA.Widgets;
namespace OpenRA
{
@@ -1370,7 +1369,7 @@ namespace OpenRA
public string Translate(string key, IDictionary<string, object> args = null, string attribute = null)
{
if (Translation.GetFormattedMessage(key, args, attribute) == key)
return Ui.Translate(key, args, attribute);
return modData.Translation.GetFormattedMessage(key, args, attribute);
return Translation.GetFormattedMessage(key, args, attribute);
}