summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--editor/vobj-editor.cpp2
-rw-r--r--editor/vobj-editor.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/vobj-editor.cpp b/editor/vobj-editor.cpp
index 82b36204..1c1f1cb3 100644
--- a/editor/vobj-editor.cpp
+++ b/editor/vobj-editor.cpp
@@ -23,7 +23,7 @@ vobj_editor::vobj_::operator bool() const { return factory != nullptr; }
vobj_editor::vobj_editor() = default;
void vobj_editor::select_tile(const vobj_& type) { _selected = &type; }
-auto vobj_editor::get_type(StringView name) -> const vobj_&
+auto vobj_editor::get_type(StringView name) -> const vobj_*
{
auto it = _types.find(name);
if (it != _types.cend())
diff --git a/editor/vobj-editor.hpp b/editor/vobj-editor.hpp
index cbe2ffb4..44688168 100644
--- a/editor/vobj-editor.hpp
+++ b/editor/vobj-editor.hpp
@@ -51,7 +51,7 @@ struct vobj_editor final
void select_tile(const vobj_& type);
void clear_selection();
- static const vobj_& get_type(StringView name);
+ static const vobj_* get_type(StringView name);
bool is_item_selected(const vobj_& x) const;
bool is_anything_selected() const;