Skip to content

Commit

Permalink
workaround broken int promotion in gmcs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisforbes committed May 9, 2010
1 parent f04b38a commit 1b3527f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Editor/Surface.cs
Expand Up @@ -121,7 +121,7 @@ Bitmap RenderChunk(int u, int v)
var tr = Map.MapTiles[u * ChunkSize + i, v * ChunkSize + j];
var tile = TileSet.tiles[tr.type];

var index = (tr.index < tile.TileBitmapBytes.Count) ? tr.index : 0;
var index = (tr.index < tile.TileBitmapBytes.Count) ? tr.index : (byte)0;
var rawImage = tile.TileBitmapBytes[index];
for (var x = 0; x < 24; x++)
for (var y = 0; y < 24; y++)
Expand Down

0 comments on commit 1b3527f

Please sign in to comment.