diff --git a/src/citymania/cm_hotkeys.cpp b/src/citymania/cm_hotkeys.cpp index 2d70bf7dea..d6984fe774 100644 --- a/src/citymania/cm_hotkeys.cpp +++ b/src/citymania/cm_hotkeys.cpp @@ -58,7 +58,7 @@ void ResetEffectivveActionCounter() { } std::pair GetEPM() { - if (!_first_effective_tick) return std::make_pair(0, 0); + if (!_first_effective_tick || _realtime_tick <= _first_effective_tick) return std::make_pair(0, 0); PurgeLastActions(); return std::make_pair(_effective_actions * 60000 / (_realtime_tick - _first_effective_tick), _last_actions.size()); }