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:
parent
c0ac410009
commit
5c0237b4e5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue