Fix off-by-one error in report-usage

develop
lethosor 2021-04-05 23:35:11 -04:00
parent 14172b7c0f
commit 7b1d7a7ff9
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 1 additions and 1 deletions

@ -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;
}