diff options
Diffstat (limited to 'src/effectmanager.cpp')
-rw-r--r-- | src/effectmanager.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/effectmanager.cpp b/src/effectmanager.cpp index be7fa1e83..5901e21ea 100644 --- a/src/effectmanager.cpp +++ b/src/effectmanager.cpp @@ -48,11 +48,10 @@ EffectManager::EffectManager() { if (xmlNameEqual(node, "effect")) { - EffectDescription ed; - ed.id = XML::getProperty(node, "id", -1); - ed.GFX = XML::getProperty(node, "particle", ""); - ed.SFX = XML::getProperty(node, "audio", ""); - mEffects.push_back(ed); + mEffects.push_back(EffectDescription( + XML::getProperty(node, "id", -1), + XML::getProperty(node, "particle", ""), + XML::getProperty(node, "audio", ""))); } } } |