- Redid ClearLcoks() fix that I accidentally removed.

SVN r102 (trunk)
This commit is contained in:
Randy Heit 2006-05-10 04:12:43 +00:00
commit 032526340a
3 changed files with 7 additions and 2 deletions

View file

@ -322,7 +322,11 @@ static void ClearLocks()
{
if (PClass::m_Types[i]->IsDescendantOf(RUNTIME_CLASS(AKey)))
{
static_cast<AKey*>(GetDefaultByType(PClass::m_Types[i]))->KeyNumber=0;
AKey *key = static_cast<AKey*>(GetDefaultByType(PClass::m_Types[i]));
if (key != NULL)
{
key->KeyNumber = 0;
}
}
}
for(i=0;i<256;i++)