From eca21241523b5f45f129ea8dd6b692359cc0a20b Mon Sep 17 00:00:00 2001 From: Chris Ridley Date: Mon, 22 Oct 2018 21:02:46 -0500 Subject: [PATCH] Modified ApplyOverlay to take IMapView as a parameter, since it does not set any values in the overlay. --- GoRogue/MapViews/IMapViewExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GoRogue/MapViews/IMapViewExtensions.cs b/GoRogue/MapViews/IMapViewExtensions.cs index fa479461..9766d545 100644 --- a/GoRogue/MapViews/IMapViewExtensions.cs +++ b/GoRogue/MapViews/IMapViewExtensions.cs @@ -301,7 +301,7 @@ public static string ExtendToString(this IMapView map, int fieldSize, stri /// /// The data apply to the map. Must have identical dimensions to the current map. /// - public static void ApplyOverlay(this ISettableMapView self, ISettableMapView overlay) + public static void ApplyOverlay(this ISettableMapView self, IMapView overlay) { if (self.Height != overlay.Height || self.Width != overlay.Width) throw new ArgumentException("Overlay size must match current map size.");