diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-08-11 12:02:20 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-08-11 12:02:20 +0200 |
| commit | 402acc4bc8c525b1585465b5ed888142d5375094 (patch) | |
| tree | 7260908df653ff289aeb9a25c8eae92365195326 /editor/camera.cpp | |
| parent | 6e311bf0b0a92cb07e21237af4705f01a9d10eb4 (diff) | |
initialize Math::Vector directly from arrays
Following Magnum change.
Diffstat (limited to 'editor/camera.cpp')
| -rw-r--r-- | editor/camera.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/camera.cpp b/editor/camera.cpp index df5b2cb5..dfe985b4 100644 --- a/editor/camera.cpp +++ b/editor/camera.cpp @@ -104,7 +104,7 @@ object_id app::get_object_colliding_with_cursor() [[maybe_unused]] auto x = std::bit_cast<collision_data>(data); if (x.type == (uint64_t)collision_type::geometry) return true; - Vector2 min(rect.m_min[0], rect.m_min[1]), max(rect.m_max[0], rect.m_max[1]); + Vector2 min{rect.m_min}, max{rect.m_max}; if (t0 >= min && t0 <= max) { if (auto e_ = world.find_object(x.id); |
