1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-01-24 17:26:41 +00:00

fix typo that broke moving tiles between layers

This commit is contained in:
fgenesis 2024-05-08 03:25:19 +02:00
parent c0ac410009
commit 5c0237b4e5

View file

@ -120,7 +120,7 @@ size_t TileStorage::moveToOther(TileStorage& other, const size_t *indices, size_
tiles.reserve(tmp.size() - n); tiles.reserve(tmp.size() - n);
for(size_t i = 0; i < tmp.size(); ++i) 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) if(indices[k] == i)
goto skip; goto skip;