summaryrefslogtreecommitdiff
path: root/src/gui/playerbox.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-11 00:01:36 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-11 00:01:36 +0100
commitdbc6444d3086fa1b7afca4605600a0a0ae8ca394 (patch)
tree929a30503728e9f657c9a8820b3a9069b916343e /src/gui/playerbox.cpp
parent8712ce09e8f3a86dcf2f6c8ee7d030e3b41a4618 (diff)
downloadmana-client-dbc6444d3086fa1b7afca4605600a0a0ae8ca394.tar.gz
mana-client-dbc6444d3086fa1b7afca4605600a0a0ae8ca394.tar.bz2
mana-client-dbc6444d3086fa1b7afca4605600a0a0ae8ca394.tar.xz
mana-client-dbc6444d3086fa1b7afca4605600a0a0ae8ca394.zip
Removed many pointless comparisons with NULL
Sometimes it's nice for clarity, but most of the time this is just clutter. C++ != Java. :)
Diffstat (limited to 'src/gui/playerbox.cpp')
-rw-r--r--src/gui/playerbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/playerbox.cpp b/src/gui/playerbox.cpp
index 60003fb5..f99ce6ef 100644
--- a/src/gui/playerbox.cpp
+++ b/src/gui/playerbox.cpp
@@ -87,7 +87,7 @@ void PlayerBox::draw(gcn::Graphics *graphics)
y = getHeight() / 2 + bs;
for (int i = 0; i < Being::VECTOREND_SPRITE; i++)
{
- if (mPlayer->getSprite(i) != NULL)
+ if (mPlayer->getSprite(i))
{
mPlayer->getSprite(i)->draw(static_cast<Graphics*>(graphics), x, y);
}