summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-10 23:35:30 +0100
committerIra Rice <irarice@gmail.com>2009-02-10 20:26:01 -0700
commitff1205d2b89f7f2273a32176c746f36836d7bfa9 (patch)
tree9174cd93bbc3445b027a04637f76b67948a85eab /src/localplayer.cpp
parentd99b00a149e7828adb3c4651069483e51b0b458b (diff)
downloadmana-ff1205d2b89f7f2273a32176c746f36836d7bfa9.tar.gz
mana-ff1205d2b89f7f2273a32176c746f36836d7bfa9.tar.bz2
mana-ff1205d2b89f7f2273a32176c746f36836d7bfa9.tar.xz
mana-ff1205d2b89f7f2273a32176c746f36836d7bfa9.zip
Use string::empty() instead of comparing to ""
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index fb539a46..b8703b70 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -537,7 +537,8 @@ void LocalPlayer::attack(Being *target, bool keep)
if (mEquippedWeapon)
{
std::string soundFile = mEquippedWeapon->getSound(EQUIP_EVENT_STRIKE);
- if (soundFile != "") sound.playSfx(soundFile);
+ if (!soundFile.empty())
+ sound.playSfx(soundFile);
}
else
{