diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 6f398e78cd..c6b8945203 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -192,6 +192,7 @@ struct AIListWindow : public Window { DeleteWindowByClass(WC_QUERY_STRING); InvalidateWindowClassesData(WC_TEXTFILE); if (_game_mode == GM_NORMAL && slot == OWNER_DEITY) { + DeleteWindowByClass(WC_AI_SETTINGS); InvalidateWindowData(WC_AI_DEBUG, 0, -1); SetWindowClassesDirty(WC_AI_DEBUG); }