Skip to content

Commit

Permalink
Merge pull request #1093 from VladiStep/textureEditorCrashFix
Browse files Browse the repository at this point in the history
Fix of a crash when a texture page item source size is zero.
  • Loading branch information
Grossley authored Oct 31, 2022
2 parents 892fa4f + 1f2d7ea commit 6501d9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UndertaleModTool/Converters/UndertaleCachedImageLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
return null;
}

if (texture.SourceWidth == 0 || texture.SourceHeight == 0)
return null;

if (tileRectList is not null)
{
Expand Down

0 comments on commit 6501d9a

Please sign in to comment.