Core/ApplicationBase: Fix GetComponent

This commit is contained in:
SirLynix
2023-05-07 22:41:03 +02:00
parent 04e88d067b
commit 24e546a808

View File

@@ -57,7 +57,7 @@ namespace Nz
if (componentIndex >= m_components.size())
return nullptr;
return m_components[componentIndex].get();
return static_cast<T*>(m_components[componentIndex].get());
}
template<typename T>
@@ -67,7 +67,7 @@ namespace Nz
if (componentIndex >= m_components.size())
return nullptr;
return m_components[componentIndex].get();
return static_cast<const T*>(m_components[componentIndex].get());
}
inline void ApplicationBase::Quit()