diff --git a/src/window.cpp b/src/window.cpp --- a/src/window.cpp +++ b/src/window.cpp @@ -257,7 +257,7 @@ void Window::SetWidgetHighlight(byte wid /* If we disable a highlight, check all widgets if anyone still has a highlight */ bool valid = false; for (uint i = 0; i < this->nested_array_size; i++) { - NWidgetBase *nwid = this->GetWidget(i); + nwid = this->GetWidget(i); if (nwid == nullptr) continue; if (!nwid->IsHighlighted()) continue;