- fixed: When a player drops his inventory, the dropped weapons must be checked for their class to ensure that they are not DehackedPickups which cannot be modified as intended.

This commit is contained in:
Christoph Oelckers 2014-12-28 22:15:12 +01:00
parent 519ff8b7d1
commit b5d0c5c357
1 changed files with 1 additions and 1 deletions

View File

@ -1365,7 +1365,7 @@ void APlayerPawn::Die (AActor *source, AActor *inflictor, int dmgflags)
weap->SpawnState != ::GetDefault<AActor>()->SpawnState) weap->SpawnState != ::GetDefault<AActor>()->SpawnState)
{ {
item = P_DropItem (this, weap->GetClass(), -1, 256); item = P_DropItem (this, weap->GetClass(), -1, 256);
if (item != NULL) if (item != NULL && item->IsKindOf(RUNTIME_CLASS(AWeapon)))
{ {
if (weap->AmmoGive1 && weap->Ammo1) if (weap->AmmoGive1 && weap->Ammo1)
{ {