(svn r15096) -Fix [NoAI]: free memory when no longer needed

-Fix [NoAI]: when there are multiple versions of one AI, never randonly pick an older one, but always the latest
This commit is contained in:
truebrain
2009-01-15 18:24:49 +00:00
parent ef62688522
commit 6cfb9a24e0
2 changed files with 25 additions and 29 deletions

View File

@@ -29,11 +29,6 @@ public:
void SetDummyAI(class AIInfo *info) { this->info_dummy = info; }
/**
* Remove an AI from the available list.
*/
void UnregisterAI(class AIInfo *info);
/**
* Select a Random AI.
*/
@@ -88,6 +83,7 @@ private:
AIInfo *info_dummy;
AIInfoList info_list;
AIInfoList info_single_list;
AILibraryList library_list;
class Squirrel *engine;
char main_script[1024];