mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- fixed: Giving several morph items in the same tic could lead to an invalid Owner pointer in APowerupGiver::Use.
This commit is contained in:
parent
9193466572
commit
4372a14479
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ DEFINE_FIELD(APowerupGiver, Strength)
|
|||
bool APowerupGiver::Use (bool pickup)
|
||||
{
|
||||
if (PowerupType == NULL) return true; // item is useless
|
||||
if (Owner == nullptr) return true;
|
||||
|
||||
APowerup *power = static_cast<APowerup *> (Spawn (PowerupType));
|
||||
|
||||
|
|
Loading…
Reference in a new issue