fix: Fixes argument out of range error from empty tile list (#1612)
This commit is contained in:
parent
3109f59d4d
commit
88b8851156
1 changed files with 5 additions and 0 deletions
|
|
@ -28,6 +28,11 @@ public class TileList
|
|||
|
||||
public void AddRange(ReadOnlySpan<StaticTile> tiles)
|
||||
{
|
||||
if (tiles.Length == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
TryResize(tiles.Length);
|
||||
for (var i = 0; i < tiles.Length; ++i)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue