diff --git a/src/context.h b/src/context.h index a2d0c3ac7b..6570cdf0be 100644 --- a/src/context.h +++ b/src/context.h @@ -24,10 +24,10 @@ using CoreContext = std::variant>; template -T* GetContext(const CoreContext& ctx) noexcept +T* GetContext(const CoreContext& context) noexcept { - return std::holds_alternative>(ctx) - ? &std::get>(ctx).get() + return std::holds_alternative>(context) + ? &std::get>(context).get() : nullptr; }