diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-21 00:42:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-21 00:42:32 +0300 |
commit | 849bf8bca7d8df41bc6adca236fef8ba2886d1ff (patch) | |
tree | bb0587c4b02e7033460358f8a7182c94555ed905 /src/particle/particle.cpp | |
parent | 0de4bb29a90db0f6493263b8db4cb1329935b5a3 (diff) | |
download | manaplus-849bf8bca7d8df41bc6adca236fef8ba2886d1ff.tar.gz manaplus-849bf8bca7d8df41bc6adca236fef8ba2886d1ff.tar.bz2 manaplus-849bf8bca7d8df41bc6adca236fef8ba2886d1ff.tar.xz manaplus-849bf8bca7d8df41bc6adca236fef8ba2886d1ff.zip |
Remove useless checks.
Diffstat (limited to 'src/particle/particle.cpp')
-rw-r--r-- | src/particle/particle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/particle/particle.cpp b/src/particle/particle.cpp index 97c2c42d6..ac9ba8394 100644 --- a/src/particle/particle.cpp +++ b/src/particle/particle.cpp @@ -338,7 +338,7 @@ Particle *Particle::addEffect(const std::string &restrict particleEffectFile, else if ((node = XML::findFirstChildByName(effectChildNode, "image"))) { std::string imageSrc; - if (node && XmlHaveChildContent(node)) + if (XmlHaveChildContent(node)) imageSrc = XmlChildContent(node); if (!imageSrc.empty() && !dyePalettes.empty()) Dye::instantiate(imageSrc, dyePalettes); |