Fix the editor painting black squares. Closes #4416

This commit is contained in:
ScottNZ
2014-01-04 17:57:50 +13:00
parent f7fb05891a
commit 411b1650a0

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Editor
// Invalid tile size: return blank tile
if (frame.Size.Width < TileSize || frame.Size.Height < TileSize)
return data;
return new byte[0];
var frameData = frame.Data;
var xOffset = (frame.Size.Width - TileSize) / 2;