Fix editor

This commit is contained in:
Paul Chote
2011-02-11 17:28:18 +13:00
parent db770eb997
commit e761ce4998
3 changed files with 4 additions and 6 deletions

View File

@@ -214,7 +214,7 @@ namespace OpenRA.Editor
{
var tr = Map.MapTiles[u * ChunkSize + i, v * ChunkSize + j];
var tile = TileSet.Tiles[tr.type];
var index = (tr.image < tile.TileBitmapBytes.Count) ? tr.image : (byte)0;
var index = (tr.index < tile.TileBitmapBytes.Count) ? tr.index : (byte)0;
var rawImage = tile.TileBitmapBytes[index];
for (var x = 0; x < TileSet.TileSize; x++)
for (var y = 0; y < TileSet.TileSize; y++)