From 24e546a8086f25a1b0f4200e2dbba28f49103f80 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Sun, 7 May 2023 22:41:03 +0200 Subject: [PATCH] Core/ApplicationBase: Fix GetComponent --- include/Nazara/Core/ApplicationBase.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Nazara/Core/ApplicationBase.inl b/include/Nazara/Core/ApplicationBase.inl index 5dca39b4a..d47b3d75f 100644 --- a/include/Nazara/Core/ApplicationBase.inl +++ b/include/Nazara/Core/ApplicationBase.inl @@ -57,7 +57,7 @@ namespace Nz if (componentIndex >= m_components.size()) return nullptr; - return m_components[componentIndex].get(); + return static_cast(m_components[componentIndex].get()); } template @@ -67,7 +67,7 @@ namespace Nz if (componentIndex >= m_components.size()) return nullptr; - return m_components[componentIndex].get(); + return static_cast(m_components[componentIndex].get()); } inline void ApplicationBase::Quit()