diff --git a/src/tiles/tilebase.cpp b/src/tiles/tilebase.cpp index 8c15b03..fe65ea1 100644 --- a/src/tiles/tilebase.cpp +++ b/src/tiles/tilebase.cpp @@ -34,7 +34,8 @@ Chunk::Chunk(Coordinate pos, Layer* Owner) tiles.reserve(64); for (int i = 0; i < 64; i++) { - tiles.emplace_back(i, 0, this); + int spriteid = owner->id > 0; + tiles.emplace_back(i, spriteid, this); } }