Graphics/GraphicsComponent: Fix clear clearing other entries

This commit is contained in:
SirLynix 2023-08-09 18:01:01 +02:00
parent a6fbf3c622
commit de002adbb1
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ namespace Nz
for (std::size_t i = 0; i < m_renderables.size(); ++i)
{
auto& entry = m_renderables[i];
if (entry.renderable)
if (!entry.renderable)
continue;
OnRenderableDetach(this, i);