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

tiny fix for tile deletion

This commit is contained in:
fgenesis 2023-12-29 22:43:43 +01:00
parent 9faee6cf79
commit add9c81033

View file

@ -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);