Fix bug in simulate where the "LOADING..." label was not properly showing.

PiperOrigin-RevId: 591257979
Change-Id: Id09754b1e5a87decfb68b9fe305388aa8f0f5ed3
This commit is contained in:
Yuval Tassa
2023-12-15 08:11:26 -08:00
committed by Copybara-Service
parent 38fa756a20
commit dc0d0c59d4
+1 -1
View File
@@ -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);