Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix #4475 (refactoring mistake in 5f9d050)

  • Loading branch information...
commit 42ecae944b412208f06d33095f2226025978e954 1 parent 55e8477
@cleanrock cleanrock authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 rts/Game/UI/InfoConsole.cpp
View
5 rts/Game/UI/InfoConsole.cpp
@@ -169,8 +169,9 @@ void CInfoConsole::RecordLogMessage(const std::string& section, int level,
if (rawData.size() > maxRawLines) {
rawData.pop_front();
- } else {
- newLines++;
+ }
+ if (newLines < maxRawLines) {
+ ++newLines;
}
rawData.emplace_back(text, section, level, rawId++);
Please sign in to comment.
Something went wrong with that request. Please try again.