summaryrefslogtreecommitdiff
path: root/src/ai/ai_config.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-06-03 19:18:39 +0000
committeryexo <yexo@openttd.org>2011-06-03 19:18:39 +0000
commitcf11a1e98e4d5a4bfc6929b78a9fb28108f763a8 (patch)
tree92917d8ce904d002e0b034df3d0df6db2d27f49b /src/ai/ai_config.hpp
parentb1812c9b02a3975f0d3f9a12e23f961717df22a0 (diff)
downloadopenttd-cf11a1e98e4d5a4bfc6929b78a9fb28108f763a8.tar.xz
(svn r22534) -Fix [FS#4631] (r21250): doing rescan_ai in a game with running AIs caused a crash
Diffstat (limited to 'src/ai/ai_config.hpp')
-rw-r--r--src/ai/ai_config.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ai/ai_config.hpp b/src/ai/ai_config.hpp
index ee6f8b416..3ed06d346 100644
--- a/src/ai/ai_config.hpp
+++ b/src/ai/ai_config.hpp
@@ -57,10 +57,12 @@ public:
/**
* When ever the AI Scanner is reloaded, all infos become invalid. This
* function tells AIConfig about this.
+ * @param force_exact_match If true try to find the exact same version
+ * as specified. If false any version is ok.
* @return \c true if the reset was successful, \c false if the AI was no longer
* found.
*/
- bool ResetInfo();
+ bool ResetInfo(bool force_exact_match);
/**
* Get the AIInfo linked to this AIConfig.