Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
AspectInteractive2 committed Apr 6, 2023
1 parent 873f5ce commit 70bc065
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions OpenRA.Game/Support/ExceptionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public static void HandleFatalError(Exception ex)

if (Game.OrderManager != null && Game.OrderManager.World != null && Game.OrderManager.World.Map != null)
{
var map = Game.OrderManager.World.Map;
Log.Write("exception", $"on map {((Map)map).Uid} ({((Map)map).Title} by {((Map)map).Author}).");
var map = (Map)Game.OrderManager.World.Map;
Log.Write("exception", $"on map {map.Uid} ({map.Title} by {map.Author}).");
}

Log.Write("exception", $"Date: {DateTime.UtcNow:u}");
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/EditorBrushes/EditorCopyPasteBrush.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void Copy(CellRegion source, CVec offset)
{
var map = worldRenderer.World.Map;
var gridType = map.Grid.Type;
var mapResource = (IMapResource)worldRenderer.World.Map;
var mapResource = (IMapResource)map;
var mapTiles = ((IMapTiles)map).Tiles;
var mapHeight = ((IMapElevation)map).Height;
var mapResources = mapResource.Resources;
Expand Down

0 comments on commit 70bc065

Please sign in to comment.