SVN r191 (trunk)

This commit is contained in:
Randy Heit 2006-06-15 03:31:19 +00:00
commit d99f5b4b99
7 changed files with 165 additions and 104 deletions

View file

@ -499,11 +499,14 @@ void DObject::PointerSubstitution (DObject *old, DObject *notOld)
players[i].FixPointers (old, notOld);
}
for (i = 0; i < (unsigned int)numsectors; ++i)
if (sectors != NULL)
{
if (sectors[i].SoundTarget == old)
for (i = 0; i < (unsigned int)numsectors; ++i)
{
sectors[i].SoundTarget = static_cast<AActor *>(notOld);
if (sectors[i].SoundTarget == old)
{
sectors[i].SoundTarget = static_cast<AActor *>(notOld);
}
}
}
}