mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Revert "fix: optimization: Various PVS-Studio warnings"
This commit is contained in:
parent
a7ef7bb365
commit
ba046a52c0
90 changed files with 259 additions and 274 deletions
|
|
@ -47,12 +47,11 @@ void LevelController::update(float delta, bool input, bool pause) {
|
|||
player->postUpdate(delta, input, pause);
|
||||
|
||||
// erease null pointers
|
||||
auto& objects = level->objects;
|
||||
objects.erase(
|
||||
level->objects.erase(
|
||||
std::remove_if(
|
||||
objects.begin(), objects.end(),
|
||||
level->objects.begin(), level->objects.end(),
|
||||
[](auto obj) { return obj == nullptr; }),
|
||||
objects.end()
|
||||
level->objects.end()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue