mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 09:44:02 +00:00
tiny fix for tile deletion
This commit is contained in:
parent
9faee6cf79
commit
add9c81033
1 changed files with 3 additions and 0 deletions
|
@ -162,6 +162,9 @@ static void dropAll(TileData& t)
|
|||
|
||||
void TileStorage::deleteSome(const size_t* indices, size_t n)
|
||||
{
|
||||
if(!n)
|
||||
return;
|
||||
|
||||
std::vector<TileData> tmp;
|
||||
tmp.swap(tiles);
|
||||
tiles.reserve(tmp.size() - n);
|
||||
|
|
Loading…
Reference in a new issue