Skip to content

Commit

Permalink
Fix off by one error in RocketConsoleTextElement
Browse files Browse the repository at this point in the history
  • Loading branch information
cmf028 committed Aug 22, 2014
1 parent c103d28 commit 29d2345
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/engine/client/rocketConsoleTextElement.h
Expand Up @@ -83,7 +83,10 @@ class RocketConsoleTextElement : public Rocket::Core::Element
lastTime = lines[ line ].time;

// Find out how many lines
while ( line < lines.size() && lines[ line++ ].time >= lastTime );
while ( line < lines.size() && lines[ line ].time >= lastTime )
{
line++;
}

// Each line gets its own span element
for (line = line - 1; line >= 0; --line, numLines++ )
Expand Down

0 comments on commit 29d2345

Please sign in to comment.