(svn r22534) -Fix [FS#4631] (r21250): doing rescan_ai in a game with running AIs caused a crash

This commit is contained in:
yexo
2011-06-03 19:18:39 +00:00
parent b1812c9b02
commit cf11a1e98e
3 changed files with 18 additions and 5 deletions

View File

@@ -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.