diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-29 21:53:25 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-30 12:32:55 +0100 |
commit | 2d97a4b9d7c6d84cb8b22302cd22f805a4ab76b0 (patch) | |
tree | 77453315596574d874821f78075ffabb6731e76c /src/actorsprite.cpp | |
parent | 87470d984cc8f6fe12a354aec7bf93ee4fcb95eb (diff) | |
download | mana-2d97a4b9d7c6d84cb8b22302cd22f805a4ab76b0.tar.gz mana-2d97a4b9d7c6d84cb8b22302cd22f805a4ab76b0.tar.bz2 mana-2d97a4b9d7c6d84cb8b22302cd22f805a4ab76b0.tar.xz mana-2d97a4b9d7c6d84cb8b22302cd22f805a4ab76b0.zip |
Apply readability-delete-null-pointer fixits
These checks are unnecessary as deleting a null pointer has no effect.
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r-- | src/actorsprite.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp index ab220d45..1db68d31 100644 --- a/src/actorsprite.cpp +++ b/src/actorsprite.cpp @@ -204,9 +204,7 @@ static EffectDescription *getEffectDescription(int effectId) EffectDescription *effectDescription = getEffectDescription(node, &id); - if (default_effect) - delete default_effect; - + delete default_effect; default_effect = effectDescription; } } |