diff --git a/src/project.cpp b/src/project.cpp index aa965499..0de3ef89 100644 --- a/src/project.cpp +++ b/src/project.cpp @@ -1558,9 +1558,9 @@ void Project::loadTilesetMetatiles(Tileset* tileset) { Metatile *metatile = new Metatile; int index = i * (2 * 4 * num_layers); for (int j = 0; j < 4 * num_layers; j++) { - Tile tile(static_cast(data[index++]) - | (static_cast(data[index++]) << 8)); - metatile->tiles.append(tile); + uint16_t tileRaw = static_cast(data[index++]); + tileRaw |= static_cast(data[index++]) << 8; + metatile->tiles.append(Tile(tileRaw)); } metatiles.append(metatile); }