From 7b1d7a7ff9828161afd3bebbb60e7d3efaaa486e Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 5 Apr 2021 23:35:11 -0400 Subject: [PATCH] Fix off-by-one error in report-usage --- plugins/dwarfvet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dwarfvet.cpp b/plugins/dwarfvet.cpp index a51b8cb83..8ca2fe0d3 100644 --- a/plugins/dwarfvet.cpp +++ b/plugins/dwarfvet.cpp @@ -198,7 +198,7 @@ void AnimalHospital::reportUsage(color_ostream &out) { if (spot) out.print("X"); else out.print("-"); length_cursor--; - if (length_cursor < 0) { + if (length_cursor <= 0) { out.print("\n"); length_cursor = this->length; }