- fixed some more potential NULL pointer accesses.

SVN r3286 (trunk)
This commit is contained in:
Christoph Oelckers 2011-08-31 06:14:28 +00:00
commit 5747406776
2 changed files with 23 additions and 20 deletions

View file

@ -647,10 +647,10 @@ AInventory *AInventory::CreateTossable ()
{
copy->MaxAmount = MaxAmount;
copy->Amount = 1;
copy->DropTime = 30;
copy->flags &= ~(MF_SPECIAL|MF_SOLID);
Amount--;
}
copy->DropTime = 30;
copy->flags &= ~(MF_SPECIAL|MF_SOLID);
return copy;
}