Fixed #2400 (Tests crashing in Windows)

This commit is contained in:
Robert Reif 2011-01-04 07:34:32 +01:00 committed by Daniel Marjamäki
parent e459ed1de3
commit 63ad1fbe69
1 changed files with 1 additions and 1 deletions

View File

@ -1180,7 +1180,7 @@ void Tokenizer::simplifyTypedef()
if (func->previous()->str() == "::")
{
// check for available and matching class name
if (!spaceInfo.empty() &&
if (!spaceInfo.empty() && classLevel < spaceInfo.size() &&
func->strAt(-2) == spaceInfo[classLevel].className)
{
memberScope = 0;