diff options
author | rubidium <rubidium@openttd.org> | 2014-05-11 18:46:42 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-05-11 18:46:42 +0000 |
commit | 6e99a559285947ef76f856c2b541a22562bd5457 (patch) | |
tree | 03ae271c88c5741ccb39bd28cead902754137054 | |
parent | 0ceb05ee9f37d0f65378b6e5ca678fea70e2e5c7 (diff) | |
download | openttd-6e99a559285947ef76f856c2b541a22562bd5457.tar.xz |
(svn r26583) -Fix [FS#5974]: Game script could be changed in game by double clicking
-rw-r--r-- | src/ai/ai_gui.cpp | 2 |
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; } |