Skip to content

Commit

Permalink
fix oversight causing all expired lines to get freed rather than just…
Browse files Browse the repository at this point in the history
… one when we start to overflow them
  • Loading branch information
Paril committed Nov 23, 2024
1 parent 6cac9b1 commit 5f13bf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/refresh/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ void R_AddDebugLine(const vec3_t start, const vec3_t end, color_t color, uint32_
if (R_DebugTimeExpired(l->time)) {
List_Remove(&l->entry);
List_Insert(&debug_lines_free, &l->entry);
break;
}
}
}
Expand Down Expand Up @@ -354,6 +355,7 @@ static void R_AddDebugTextInternal(const vec3_t origin, const vec3_t angles, con
if (R_DebugTimeExpired(t->time)) {
List_Remove(&t->entry);
List_Insert(&debug_texts_free, &t->entry);
break;
}
}
}
Expand Down

0 comments on commit 5f13bf1

Please sign in to comment.