Permalink
Browse files

Check there are still entries to add.

  • Loading branch information...
1 parent 75cc324 commit 4fc7b458d1c905c8d3a08c26a9d46ef8e2302be5 @acaudwell committed May 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/logstalgia.cpp
View
@@ -812,7 +812,7 @@ void Logstalgia::logic(float t, float dt) {
int added=0;
- while(added<max_entries_per_frame) {
+ while(added<max_entries_per_frame && entries.size()>0) {
LogEntry le = entries[0];
if(le.timestamp > currtime) break;

0 comments on commit 4fc7b45

Please sign in to comment.