diff options
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index d846f4ee9..452210e55 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -142,7 +142,7 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e) if (WP(w,def_d).data_1 != -1 && !HasBit(buttons, WP(w,def_d).data_1)) WP(w,def_d).data_1 = -1; - SetWindowWidgetDisabledState(w, 6, WP(w, def_d).data_1 == -1); + w->SetWidgetDisabledState(6, WP(w, def_d).data_1 == -1); { int y; @@ -272,7 +272,7 @@ static void TownViewWndProc(Window *w, WindowEvent *e) switch (e->event) { case WE_PAINT: /* disable renaming town in network games if you are not the server */ - SetWindowWidgetDisabledState(w, 8, _networking && !_network_server); + w->SetWidgetDisabledState(8, _networking && !_network_server); SetDParam(0, t->index); DrawWindowWidgets(w); |