summaryrefslogtreecommitdiffhomepage
path: root/editor/camera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/camera.cpp')
-rw-r--r--editor/camera.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/camera.cpp b/editor/camera.cpp
index 77e3a149..48a783cc 100644
--- a/editor/camera.cpp
+++ b/editor/camera.cpp
@@ -113,7 +113,7 @@ object_id app::object_at_cursor()
Vector2 min(rect.m_min[0], rect.m_min[1]), max(rect.m_max[0], rect.m_max[1]);
if (t0 >= min && t0 <= max)
{
- if (auto e_ = world.find_entity(x.data);
+ if (auto e_ = world.find_object(x.data);
e_ && Vector2ui(e_->bbox_size).product() != 0)
{
ret = x.data;