summaryrefslogtreecommitdiff
path: root/src/effectmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-23 01:35:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-23 01:35:50 +0300
commit2f4c37b969c0aeeb35c38dddb0b5f62ea86233bd (patch)
tree275915ca8dd3fc5809f08239153430cb5c5ffa71 /src/effectmanager.cpp
parentc842a29a63ff5bd7a09aa1c2dfbc96c4a94d4243 (diff)
downloadmanaverse-2f4c37b969c0aeeb35c38dddb0b5f62ea86233bd.tar.gz
manaverse-2f4c37b969c0aeeb35c38dddb0b5f62ea86233bd.tar.bz2
manaverse-2f4c37b969c0aeeb35c38dddb0b5f62ea86233bd.tar.xz
manaverse-2f4c37b969c0aeeb35c38dddb0b5f62ea86233bd.zip
Improve effectmanager class.
Diffstat (limited to 'src/effectmanager.cpp')
-rw-r--r--src/effectmanager.cpp9
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", "")));
}
}
}