Fix Y check in magic fill
This commit is contained in:
parent
907a51ce31
commit
ccde6d7b93
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ void MapPixmapItem::magicFill(QGraphicsSceneMouseEvent *event) {
|
||||||
QPoint selectionDimensions = this->metatileSelector->getSelectionDimensions();
|
QPoint selectionDimensions = this->metatileSelector->getSelectionDimensions();
|
||||||
uint16_t tile = block->tile;
|
uint16_t tile = block->tile;
|
||||||
|
|
||||||
for (int y = 0; y < map->getWidth(); y++) {
|
for (int y = 0; y < map->getHeight(); y++) {
|
||||||
for (int x = 0; x < map->getWidth(); x++) {
|
for (int x = 0; x < map->getWidth(); x++) {
|
||||||
Block *block = map->getBlock(x, y);
|
Block *block = map->getBlock(x, y);
|
||||||
if (block && block->tile == tile) {
|
if (block && block->tile == tile) {
|
||||||
|
|
Loading…
Reference in a new issue