--- a/src/ai/ai_gui.cpp Mon May 19 14:14:33 2008 +0000
+++ b/src/ai/ai_gui.cpp Mon May 19 15:13:58 2008 +0000
@@ -55,7 +55,7 @@
static PlayerID ai_debug_player;
int redraw_timer;
- AIDebugWindow(const WindowDesc *desc, void *data, WindowNumber number) : Window(desc, data, number)
+ AIDebugWindow(const WindowDesc *desc, WindowNumber number) : Window(desc, number)
{
/* Disable the players who are not active or not an AI */
for (PlayerID i = PLAYER_FIRST; i < MAX_PLAYERS; i++) {
@@ -74,7 +74,7 @@
virtual void OnPaint()
{
/* Draw standard stuff */
- DrawWindowWidgets(this);
+ this->DrawWidgets();
/* Check if the currently selected player is still active. */
if (ai_debug_player == INVALID_PLAYER || !GetPlayer(ai_debug_player)->is_active) {
@@ -246,8 +246,7 @@
WDP_AUTO, WDP_AUTO, 299, 228, 299, 228,
WC_PERFORMANCE_DETAIL, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
- _ai_debug_widgets,
- NULL
+ _ai_debug_widgets
};
void ShowAIDebugWindow()