summaryrefslogtreecommitdiff
path: root/src/ai/ai_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/ai_gui.cpp')
-rw-r--r--src/ai/ai_gui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 8272cc966..05c9e388e 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -134,7 +134,9 @@ struct AIDebugWindow : public Window {
/* Draw the AI name */
AIInfo *info = GetCompany(ai_debug_company)->ai_info;
assert(info != NULL);
- DoDrawString(info->GetName(), 7, 47, TC_BLACK);
+ char name[1024];
+ snprintf(name, sizeof(name), "%s (v%d)", info->GetName(), info->GetVersion());
+ DoDrawString(name, 7, 47, TC_BLACK);
CompanyID old_company = _current_company;
_current_company = ai_debug_company;