Switching to Linux to find a memory bug and I want to keep a record of what caused it.

This commit is contained in:
Zed A. Shaw 2025-07-30 22:34:26 -04:00
parent be3eef7082
commit e51fb8627c
7 changed files with 23 additions and 42 deletions

View file

@ -437,8 +437,9 @@ void Raycaster::update_level(GameLevel level) {
$level.world->query<components::Sprite>([&](const auto ent, auto& sprite) {
// player doesn't need a sprite
if($level.player == ent) return;
update_sprite(ent, sprite);
if($level.player != ent) {
update_sprite(ent, sprite);
}
});
}