From ff1205d2b89f7f2273a32176c746f36836d7bfa9 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 10 Feb 2009 23:35:30 +0100 Subject: Use string::empty() instead of comparing to "" --- src/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/monster.cpp') diff --git a/src/monster.cpp b/src/monster.cpp index 9f12ebf4..cc529196 100644 --- a/src/monster.cpp +++ b/src/monster.cpp @@ -125,7 +125,7 @@ void Monster::setAction(Action action) //attack particle effect particleEffect = getInfo().getAttackParticleEffect(); - if (particleEffect != "" && mParticleEffects) + if (!particleEffect.empty() && mParticleEffects) { switch (mDirection) { -- cgit v1.2.3-60-g2f50