use Path.Combine here too

This commit is contained in:
JohnCorby 2022-10-18 00:40:51 -07:00
parent 2e759523e7
commit bb4e7fca2a

View File

@ -2,6 +2,7 @@ using NewHorizons.Handlers;
using NewHorizons.Utility;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
@ -131,7 +132,7 @@ namespace NewHorizons.Components.ShipLog
}
else
{
var path = $"planets/{uniqueID}.png";
var path = Path.Combine("planets", uniqueID + ".png");
Logger.LogVerbose($"ShipLogStarChartManager - Trying to load {path}");
texture = ImageUtilities.GetTexture(Main.SystemDict[uniqueID].Mod, path);
}