Merge pull request #4418 from ScottNZ/bleed

Fix the editor painting black squares. Closes #4416
This commit is contained in:
Paul Chote
2014-01-04 00:00:25 -08:00

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;