for (t=0; t<m_nNumLightObj; t++)
{
if (!pbInFrustum[t])
continue;
m_pDevice->SetTransform(D3DTS_WORLD, &m_pLightSources[t].Matrix);
if (m_pLightSources[t].pObj)
m_pLightSources[t].pObj->RenderPass(1);
}
C/C++ compilers usually get confused when you mis-match braces { and }, and report the error only long after it is unavoidably apparent that something went wrong.
Check that the code before it doesn't have missing closing braces }. It typically helps if you get an editor that highlights brace matches.