src/ai/ai_squirrel.hpp
branchnoai
changeset 10649 9034b80fdbdb
parent 10643 970417eef395
child 10889 ecb77cfc4a10
--- a/src/ai/ai_squirrel.hpp	Mon May 19 22:28:27 2008 +0000
+++ b/src/ai/ai_squirrel.hpp	Tue May 20 13:09:34 2008 +0000
@@ -6,6 +6,7 @@
 #define AI_SQUIRREL_HPP
 
 #include <map>
+struct ltstr { bool operator()(const char *s1, const char *s2) const { return strcmp(s1, s2) < 0; } };
 
 class AISquirrel {
 public:
@@ -53,7 +54,7 @@
 	const char *GetCurrentDirName() { return this->current_dir; }
 
 private:
-	typedef std::map<const char *, class AIInfo *> AIInfoList;
+	typedef std::map<const char *, class AIInfo *, ltstr> AIInfoList;
 
 	/**
 	 * Scan a dir for AIs. If found, AIInfo is created, and the AI is registered to the central system.