diff options
Diffstat (limited to 'src/gui/killstats.cpp')
-rw-r--r-- | src/gui/killstats.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/killstats.cpp b/src/gui/killstats.cpp index d8da5c1e8..d7590d99e 100644 --- a/src/gui/killstats.cpp +++ b/src/gui/killstats.cpp @@ -144,7 +144,8 @@ KillStats::~KillStats() void KillStats::action(const gcn::ActionEvent &event) { - if (event.getId() == "reset") + const std::string &eventId = event.getId(); + if (eventId == "reset") { mKillCounter = 0; mExpCounter = 0; @@ -157,7 +158,7 @@ void KillStats::action(const gcn::ActionEvent &event) resetTimes(); } - else if (event.getId() == "timer") + else if (eventId == "timer") { mKillTimer = 0; mKillTCounter = 0; |