diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-18 01:45:19 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-19 14:32:18 +0100 |
commit | 151e6911a8aa56749edbbf0c15ab04752d96c2f3 (patch) | |
tree | 06fcf3d6551d1945b5717458aa09222c947ede04 /editor/update.cpp | |
parent | e77dc91b5d3e6a5181776a81cee2c3164c7b3cc9 (diff) |
ccc
Diffstat (limited to 'editor/update.cpp')
-rw-r--r-- | editor/update.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/update.cpp b/editor/update.cpp index 6e5269cc..6987b411 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -232,10 +232,10 @@ void app::update_world(Ns dt) for (int16_t y = miny; y <= maxy; y++) for (int16_t x = minx; x <= maxx; x++) { - auto* c_ = world.at({x, y, z}); - if (!c_) + auto* cʹ = world.at({x, y, z}); + if (!cʹ) continue; - auto& c = *c_; + auto& c = *cʹ; const auto& es = c.objects(); const auto size = es.size(); for (auto i = (int)(size-1); i >= 0; i--) |