summaryrefslogtreecommitdiff
path: root/src/ai/ai_gui.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/ai_gui.hpp')
-rw-r--r--src/ai/ai_gui.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ai/ai_gui.hpp b/src/ai/ai_gui.hpp
index e76681636..0a47e992b 100644
--- a/src/ai/ai_gui.hpp
+++ b/src/ai/ai_gui.hpp
@@ -17,6 +17,7 @@
#ifdef ENABLE_AI
void ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY);
void ShowAIConfigWindow();
+void ShowAIDebugWindowIfAIError();
#else
#include "table/strings.h"
@@ -25,6 +26,7 @@ static inline void ShowAIConfigWindow()
ShowErrorMessage(STR_ERROR_NO_AI, STR_ERROR_NO_AI_SUB, WL_INFO);
}
static inline void ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY) {ShowAIConfigWindow();}
+static inline void ShowAIDebugWindowIfAIError() {}
#endif /* ENABLE_AI */
#endif /* AI_GUI_HPP */