mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-04 06:54:39 +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)
|
void TileStorage::deleteSome(const size_t* indices, size_t n)
|
||||||
{
|
{
|
||||||
|
if(!n)
|
||||||
|
return;
|
||||||
|
|
||||||
std::vector<TileData> tmp;
|
std::vector<TileData> tmp;
|
||||||
tmp.swap(tiles);
|
tmp.swap(tiles);
|
||||||
tiles.reserve(tmp.size() - n);
|
tiles.reserve(tmp.size() - n);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue