summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorQuipyowert2 <38995150+Quipyowert2@users.noreply.github.com>2020-02-16 17:57:22 -0800
committerNiels Martin Hansen <nielsm@indvikleren.dk>2020-02-17 09:15:28 +0100
commit4552b17691fa7c4f1fdb4ca7652ca48278a68fec (patch)
treedbe1ca9db8d1bfe2a23849ad0082de39fb045b81 /src/ai
parent0c80ae5288a80a012f6c89de569ce8447832fbb3 (diff)
downloadopenttd-4552b17691fa7c4f1fdb4ca7652ca48278a68fec.tar.xz
Codechange: Avoid copying function parameters by using const references
Diffstat (limited to 'src/ai')
-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 a0552628c..d61cfea0d 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -589,7 +589,7 @@ struct AISettingsWindow : public Window {
}
private:
- bool IsEditableItem(const ScriptConfigItem config_item) const
+ bool IsEditableItem(const ScriptConfigItem &config_item) const
{
return _game_mode == GM_MENU || ((this->slot != OWNER_DEITY) && !Company::IsValidID(this->slot)) || (config_item.flags & SCRIPTCONFIG_INGAME) != 0;
}