diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-19 00:27:45 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-19 00:27:45 +0200 |
commit | b2ac4def24379db588ffa52ca63676710f18b4fc (patch) | |
tree | 09a76cb672d032cd6b8f41fd3f5afc6c3836839f /src/localplayer.cpp | |
parent | f4792bc06f21335fc2d1171d937ea7645ca0c253 (diff) | |
download | mv-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.gz mv-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.bz2 mv-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.xz mv-b2ac4def24379db588ffa52ca63676710f18b4fc.zip |
Fix code style and add small optimisations.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index a08eb1265..4d085eae4 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -1586,7 +1586,7 @@ void LocalPlayer::event(Channels channel, const Mana::Event &event) int change = exp.first - event.getInt("oldValue1"); if (change != 0 && mMessages.size() < 20) { - if (mMessages.size() > 0) + if (!mMessages.empty()) { MessagePair pair = mMessages.back(); if (pair.first.find(" xp") == pair.first.size() - 3) |