Add missing key

This commit is contained in:
TennesseeTrash 2025-06-09 01:42:35 +02:00
parent 9dc5054fc0
commit ed6dc601cc

View file

@ -283,7 +283,7 @@ namespace Garbage
using namespace SimpleConfImplementation; using namespace SimpleConfImplementation;
if (auto it = mPairs.find(key); it != mPairs.end()) { if (auto it = mPairs.find(key); it != mPairs.end()) {
return Convert<T>(it->second); return Convert<T>(key, it->second);
} }
return std::nullopt; return std::nullopt;
@ -295,7 +295,7 @@ namespace Garbage
using namespace SimpleConfImplementation; using namespace SimpleConfImplementation;
if (auto it = mPairs.find(key); it != mPairs.end()) { if (auto it = mPairs.find(key); it != mPairs.end()) {
return Convert<T>(it->second); return Convert<T>(key, it->second);
} }
if constexpr (std::is_same_v<RequireValue, Required>) { if constexpr (std::is_same_v<RequireValue, Required>) {