- fixed copy-and-paste bug in the status bar LED init code

This commit is contained in:
Volker Ruppert 2012-01-05 22:31:19 +00:00
parent e2ff4bc6d4
commit c98decb552

View File

@ -771,7 +771,7 @@ void bx_gui_c::statusbar_setitem(int element, bx_bool active, bx_bool w)
{
if (element < 0) {
for (unsigned i = 0; i < statusitem_count; i++) {
statusbar_setitem_specific(element, 0, 0);
statusbar_setitem_specific(i, 0, 0);
}
} else if ((unsigned)element < statusitem_count) {
if ((active != statusitem[element].active) ||