Skip to content

Commit

Permalink
Modified ApplyOverlay to take IMapView as a parameter, since it does …
Browse files Browse the repository at this point in the history
…not set any values in the overlay.
  • Loading branch information
Chris3606 committed Oct 23, 2018
1 parent 438455a commit eca2124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GoRogue/MapViews/IMapViewExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public static string ExtendToString<T>(this IMapView<T> map, int fieldSize, stri
/// <param name="overlay">
/// The data apply to the map. Must have identical dimensions to the current map.
/// </param>
public static void ApplyOverlay<T>(this ISettableMapView<T> self, ISettableMapView<T> overlay)
public static void ApplyOverlay<T>(this ISettableMapView<T> self, IMapView<T> overlay)
{
if (self.Height != overlay.Height || self.Width != overlay.Width)
throw new ArgumentException("Overlay size must match current map size.");
Expand Down

0 comments on commit eca2124

Please sign in to comment.