eliminate possible use before set warnings

pull/1344/head
phkahler 2023-01-31 20:39:30 -05:00 committed by Paul Kahler
parent 8117a21d59
commit 0c28adc69e
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,7 @@ void TextWindow::DrawOrHitTestIcons(UiCanvas *uiCanvas, TextWindow::DrawOrHitHow
hoveredButton = NULL; hoveredButton = NULL;
} }
double hoveredX, hoveredY; double hoveredX = 0, hoveredY = 0;
for(Button *button : buttons) { for(Button *button : buttons) {
if(how == PAINT) { if(how == PAINT) {
button->Draw(uiCanvas, x, y, (button == hoveredButton)); button->Draw(uiCanvas, x, y, (button == hoveredButton));