From 3eed6f633605c308547c73ddd232c0081842247a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 18 May 2023 04:38:06 +0200 Subject: a --- editor/vobj-editor.cpp | 2 +- editor/vobj-editor.hpp | 2 +- 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; -- cgit v1.2.3