diff --git a/src/g_shared/a_pickups.h b/src/g_shared/a_pickups.h index f9ccbe2a66..152821a28d 100644 --- a/src/g_shared/a_pickups.h +++ b/src/g_shared/a_pickups.h @@ -236,6 +236,7 @@ public: virtual bool TryPickup (AActor *toucher); virtual bool PickupForAmmo (AWeapon *ownedWeapon); virtual bool Use (bool pickup); + virtual void Destroy(); virtual FState *GetUpState (); virtual FState *GetDownState (); diff --git a/src/g_shared/a_weapons.cpp b/src/g_shared/a_weapons.cpp index 842b3e50d9..1303f3ec9e 100644 --- a/src/g_shared/a_weapons.cpp +++ b/src/g_shared/a_weapons.cpp @@ -113,7 +113,7 @@ bool AWeapon::Use (bool pickup) // //=========================================================================== -FState *AWeapon::Destroy() +void AWeapon::Destroy() { if (SisterWeapon != NULL) {