diff --git a/src/Library/BaseLibrary.hpp b/src/Library/BaseLibrary.hpp index fbc8b2e..68c8ed4 100644 --- a/src/Library/BaseLibrary.hpp +++ b/src/Library/BaseLibrary.hpp @@ -36,8 +36,8 @@ namespace CreatureLib::Library { _listValues.Remove(k); } - bool TryGet(const ArbUt::BasicStringView& name, ArbUt::BorrowedPtr& out) const noexcept { - return TryGet(name.GetHash(), out); + std::optional> TryGet(const ArbUt::BasicStringView& name) const noexcept { + return TryGet(name.GetHash()); } std::optional> TryGet(uint32_t hashedKey) const noexcept { auto find = _values.GetStdMap().find(hashedKey);