diff --git a/ogsr_engine/Layers/xrRender/FVisual.cpp b/ogsr_engine/Layers/xrRender/FVisual.cpp index ae47829af..264fc3e72 100644 --- a/ogsr_engine/Layers/xrRender/FVisual.cpp +++ b/ogsr_engine/Layers/xrRender/FVisual.cpp @@ -86,7 +86,7 @@ void Fvisual::Load(const char* N, IReader* data, u32 dwFlags) ID = def().r_u32(); m_fast->iBase = def().r_u32(); m_fast->iCount = def().r_u32(); - m_fast->dwPrimitives = iCount / 3; + m_fast->dwPrimitives = m_fast->iCount / 3; VERIFY(NULL == m_fast->p_rm_Indices); m_fast->p_rm_Indices = RImplementation.getIB(ID, true);