- Fixed a few Strife ammo amount values.

- Fixed the ClearLocks function so it doesn't crash when called before the
  ActorInfos have been created.

SVN r96 (trunk)
This commit is contained in:
Christoph Oelckers 2006-05-10 00:25:53 +00:00
commit 632e03fa7e
3 changed files with 9 additions and 5 deletions

View file

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