This commit is contained in:
Josh Deprez 2021-07-30 16:46:15 +10:00 committed by Josh Deprez
parent 83a95ed1c1
commit bcad4fcb73

View file

@ -48,10 +48,10 @@ func main() {
}
tiles := make([][]engine.Tile, len(staticTiles))
for j := range staticTiles {
tiles[j] = make([]engine.Tile, len(staticTiles[j]))
for i := range staticTiles[j] {
tiles[j][i] = staticTiles[j][i]
for j, row := range staticTiles {
tiles[j] = make([]engine.Tile, len(row))
for i, t := range row {
tiles[j][i] = t
}
}