Skip to content

Commit 948f2df

Browse files
committed
use correct online file path
1 parent 448800a commit 948f2df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Gui/Models/ObjectEditorModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public bool TryLoadObject(FileSystemItem filesystemItem, out UiDatLocoFile? uiLo
168168
{
169169
if (filesystemItem.FileLocation == FileLocation.Online)
170170
{
171-
var uniqueObjectId = int.Parse(filesystemItem.Filename);
171+
var uniqueObjectId = int.Parse(Path.GetFileName(filesystemItem.Filename));
172172

173173
if (!OnlineCache.TryGetValue(uniqueObjectId, out var locoObj))
174174
{

0 commit comments

Comments
 (0)