mirror of
https://github.com/4sval/FModel.git
synced 2026-03-21 17:24:26 -05:00
fixed crash for dead game mode folder
This commit is contained in:
parent
ed63dc9d07
commit
70901c9078
|
|
@ -1,4 +1,4 @@
|
|||
using FModel.Creator.Bases;
|
||||
using FModel.Creator.Bases;
|
||||
using FModel.Creator.Texts;
|
||||
using FModel.Utils;
|
||||
using SkiaSharp;
|
||||
|
|
@ -181,7 +181,7 @@ namespace FModel.Creator.Stats
|
|||
Color = new SKColor(0, 0, 50, 75)
|
||||
});
|
||||
|
||||
c.DrawBitmap(stat.Icon.Resize(iconSize, iconSize), new SKPoint(icon.Margin * (int)2.5, y + 4), new SKPaint { FilterQuality = SKFilterQuality.High, IsAntialias = true });
|
||||
if (stat.Icon != null) c.DrawBitmap(stat.Icon.Resize(iconSize, iconSize), new SKPoint(icon.Margin * (int)2.5, y + 4), new SKPaint { FilterQuality = SKFilterQuality.High, IsAntialias = true });
|
||||
|
||||
var statPaint = new SKPaint
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user