fix for wraps caused by me in 2b84278

This commit is contained in:
Asval
2019-07-26 02:17:22 +02:00
parent 2b84278af7
commit 60aec5e8e4

View File

@@ -439,7 +439,7 @@ namespace FModel
JToken assetPathName = largePreviewImage["asset_path_name"]; JToken assetPathName = largePreviewImage["asset_path_name"];
if (assetPathName != null) if (assetPathName != null)
{ {
string textureFile = Path.GetFileName(assetPathName.Value<string>()).Substring(0, Path.GetFileName(assetPathName.Value<string>()).LastIndexOf('.') + 1); string textureFile = Path.GetFileName(assetPathName.Value<string>()).Substring(0, Path.GetFileName(assetPathName.Value<string>()).LastIndexOf('.'));
ItemIcon.ItemIconPath = JohnWick.AssetToTexture2D(textureFile); ItemIcon.ItemIconPath = JohnWick.AssetToTexture2D(textureFile);
if (File.Exists(ItemIcon.ItemIconPath)) if (File.Exists(ItemIcon.ItemIconPath))