Skip to content

Commit 741dfa3

Browse files
authored
Search untranslated map name when loading preview (#631)
1 parent bae3855 commit 741dfa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DXMainClient/DXGUI/Multiplayer/GameInformationPanel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public void SetInfo(GenericHostedGame game)
194194

195195
if (mapLoader != null)
196196
{
197-
mapTexture = mapLoader.GameModeMaps.Find(m => m.Map.Name == game.Map && m.Map.IsPreviewTextureCached())?.Map?.LoadPreviewTexture();
197+
mapTexture = mapLoader.GameModeMaps.Find(m => m.Map.UntranslatedName.Equals(game.Map, StringComparison.InvariantCultureIgnoreCase) && m.Map.IsPreviewTextureCached())?.Map?.LoadPreviewTexture();
198198
if (mapTexture == null && noMapPreviewTexture != null)
199199
{
200200
Debug.Assert(!noMapPreviewTexture.IsDisposed, "noMapPreviewTexture should not be disposed.");

0 commit comments

Comments
 (0)