summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-05-11 18:46:42 +0000
committerrubidium <rubidium@openttd.org>2014-05-11 18:46:42 +0000
commit6e99a559285947ef76f856c2b541a22562bd5457 (patch)
tree03ae271c88c5741ccb39bd28cead902754137054 /src
parent0ceb05ee9f37d0f65378b6e5ca678fea70e2e5c7 (diff)
downloadopenttd-6e99a559285947ef76f856c2b541a22562bd5457.tar.xz
(svn r26583) -Fix [FS#5974]: Game script could be changed in game by double clicking
Diffstat (limited to 'src')
-rw-r--r--src/ai/ai_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 885c9bee8..2c1051f05 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -854,7 +854,7 @@ struct AIConfigWindow : public Window {
case WID_AIC_GAMELIST: {
this->selected_slot = OWNER_DEITY;
this->InvalidateData();
- if (click_count > 1 && this->selected_slot != INVALID_COMPANY) ShowAIListWindow((CompanyID)this->selected_slot);
+ if (click_count > 1 && this->selected_slot != INVALID_COMPANY && _game_mode != GM_NORMAL) ShowAIListWindow((CompanyID)this->selected_slot);
break;
}