Skip to content

Commit bee44b5

Browse files
committed
vrad: Fix off by one error in displacements shutdown
1 parent 8ca0322 commit bee44b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/vrad/vraddisps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ void CVRadDispMgr::Init( void )
333333
void CVRadDispMgr::Shutdown( void )
334334
{
335335
// remove all displacements from the tree
336-
for( intp ndxDisp = m_DispTrees.Count(); ndxDisp >= 0; ndxDisp-- )
336+
for( intp ndxDisp = m_DispTrees.Count() - 1; ndxDisp >= 0; ndxDisp-- )
337337
{
338338
RemoveDispFromTree( ndxDisp );
339339
}

0 commit comments

Comments
 (0)