Skip to content

Commit

Permalink
Merge pull request #758 from NyakoFox/grid-fix
Browse files Browse the repository at this point in the history
Fix errors on room exit
  • Loading branch information
Grossley authored Feb 20, 2022
2 parents 2847119 + 8811a9f commit f0c3581
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 f0c3581

Please sign in to comment.