Skip to content

Commit

Permalink
Fix errors on room exit
Browse files Browse the repository at this point in the history
  • Loading branch information
NyakoFox committed Feb 20, 2022
1 parent 2847119 commit 8811a9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UndertaleModTool/Converters/GridConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public class GridConverter : IMultiValueConverter
{
public object Convert(object[] values, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (values.Any(x => x is not double))
return new Rect();
return new Rect(0, 0, (double)values[0], (double)values[1]);
}

Expand Down

0 comments on commit 8811a9f

Please sign in to comment.