dont ignore return value when removing lights to stop compiler complaining

This commit is contained in:
Nick Fisher
2024-06-05 22:30:23 +08:00
parent fb030e9bc8
commit e9bbf2f8b3

View File

@@ -371,7 +371,7 @@ namespace flutter_filament
}
else
{
remove(_lights.begin(), _lights.end(), entity);
auto removed = remove(_lights.begin(), _lights.end(), entity);
_scene->remove(entity);
EntityManager::get().destroy(1, &entity);
}