Code cleaning of unnecessary else'
Remove unnecessary dynamic_casts
This commit is contained in:
marauder2k7 2021-09-20 17:57:16 +01:00
parent e9d0f68b55
commit 57aceb60fb
13 changed files with 33 additions and 28 deletions

View file

@ -97,15 +97,15 @@ class LightningData : public GameBaseData
{
if (mThunderSoundAsset[id] != NULL)
return mThunderSoundAsset[id]->getSfxProfile();
else
return NULL;
return NULL;
}
SFXProfile* getSFXProfile() {
if (mStrikeSoundAsset.notNull())
return mStrikeSoundAsset->getSfxProfile();
else
return NULL;
return NULL;
}
};