Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Source/Plugins/Tilemaps/Core/Tilemaps/Tile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ public static void UpdateAutoTileCon(Grid<Tile> tileGrid, Grid<bool> updateMask,
int tileY = y + beginY;
int i = tileX + tileStride * tileY;

//Skip out of bounds tiles
if(i >= tiles.Length) continue;
if(tiles[i].BaseIndex >= tileData.Length) continue;

// Skip non-AutoTiles
int autoTileIndex = tileData[tiles[i].BaseIndex].AutoTileLayer - 1;
if (autoTileIndex == -1) continue;
Expand Down