- fixed: It was possible to give inventory items to the base actors of something morphed. This would cause an assertion failure when unmorphing.

SVN r3519 (trunk)
This commit is contained in:
Christoph Oelckers 2012-04-06 09:43:18 +00:00
parent 5358fd594b
commit 7642aba6ce

View file

@ -1322,6 +1322,9 @@ bool AInventory::TryPickupRestricted (AActor *&toucher)
bool AInventory::CallTryPickup (AActor *toucher, AActor **toucher_return)
{
// unmorphed versions of a currently morphed actor cannot pick up anything.
if (toucher->flags & MF_UNMORPHED) return false;
bool res;
if (CanPickup(toucher))
res = TryPickup(toucher);