From 5c0237b4e57ea942d34087b0f1f0d5a737335294 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Wed, 8 May 2024 03:25:19 +0200 Subject: [PATCH] fix typo that broke moving tiles between layers --- BBGE/Tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BBGE/Tile.cpp b/BBGE/Tile.cpp index 357fecf..d65864c 100644 --- a/BBGE/Tile.cpp +++ b/BBGE/Tile.cpp @@ -120,7 +120,7 @@ size_t TileStorage::moveToOther(TileStorage& other, const size_t *indices, size_ tiles.reserve(tmp.size() - n); for(size_t i = 0; i < tmp.size(); ++i) { - for(size_t k = 0; k < n; ++i) // not particularly efficient, could be much better by sorting first but eh + for(size_t k = 0; k < n; ++k) // not particularly efficient, could be much better by sorting first but eh if(indices[k] == i) goto skip;