Fixed: StartConversation didn't check for a valid target.

SVN r165 (trunk)
This commit is contained in:
Christoph Oelckers 2006-06-04 14:49:17 +00:00
commit 9e5d7c3289
2 changed files with 8 additions and 2 deletions

View file

@ -2638,6 +2638,12 @@ FUNC(LS_StartConversation)
AActor *target = iterator.Next();
// Nothing to talk to
if (target == NULL)
{
return false;
}
// Only living players are allowed to start conversations
if (it == NULL || it->player == NULL || it->player->mo != it || it->health<=0)
{