mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
QOC
Code cleaning of unnecessary else' Remove unnecessary dynamic_casts
This commit is contained in:
parent
e9d0f68b55
commit
57aceb60fb
13 changed files with 33 additions and 28 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue