From a01e22ad89ab77f8adc3e984b0ad8596636930a3 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 12 Dec 2020 13:20:21 +0100 Subject: [PATCH] Fixes BaseLibrary function calling itself. Signed-off-by: Deukhoofd --- src/Library/BaseLibrary.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);