diff options
Diffstat (limited to 'src/effectmanager.cpp')
-rw-r--r-- | src/effectmanager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/effectmanager.cpp b/src/effectmanager.cpp index 5de0b872..3f9cf348 100644 --- a/src/effectmanager.cpp +++ b/src/effectmanager.cpp @@ -51,11 +51,10 @@ EffectManager::EffectManager() { if (xmlStrEqual(node->name, BAD_CAST "effect")) { - EffectDescription ed; + EffectDescription &ed = mEffects.emplace_back(); ed.id = XML::getProperty(node, "id", -1); ed.GFX = XML::getProperty(node, "particle", ""); ed.SFX = XML::getProperty(node, "audio", ""); - mEffects.push_back(ed); } } } |