eliminate possible use before set warnings
parent
8117a21d59
commit
0c28adc69e
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue