From dc0d0c59d40bf768282a47bdc465c83c2b7fb5f1 Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Fri, 15 Dec 2023 08:11:26 -0800 Subject: [PATCH] Fix bug in simulate where the "LOADING..." label was not properly showing. PiperOrigin-RevId: 591257979 Change-Id: Id09754b1e5a87decfb68b9fe305388aa8f0f5ed3 --- simulate/simulate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulate/simulate.cc b/simulate/simulate.cc index db0821d2..abe5a23b 100644 --- a/simulate/simulate.cc +++ b/simulate/simulate.cc @@ -2479,7 +2479,7 @@ void Simulate::Render() { char label[30] = {'\0'}; if (this->loadrequest) { std::snprintf(label, sizeof(label), "LOADING..."); - } if (this->scrub_index == 0) { + } else if (this->scrub_index == 0) { std::snprintf(label, sizeof(label), "PAUSE"); } else { std::snprintf(label, sizeof(label), "PAUSE (%d)", this->scrub_index);