summaryrefslogtreecommitdiff
path: root/src/townname_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-02-06 21:06:59 +0000
committerrubidium <rubidium@openttd.org>2014-02-06 21:06:59 +0000
commit9f6b8aea49cbafe9d19611dc31c64a92b171d14b (patch)
treecc2980aec66915ac23080b5c13cbf502efa5f8a0 /src/townname_type.h
parentc7629735a3393730d12fba678839baeec31ee72d (diff)
downloadopenttd-9f6b8aea49cbafe9d19611dc31c64a92b171d14b.tar.xz
(svn r26313) -Codechange: use a set for finding unique town names instead of iterating all just created town names (MJP)
Diffstat (limited to 'src/townname_type.h')
-rw-r--r--src/townname_type.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/townname_type.h b/src/townname_type.h
index 8a4b12b8b..0177294d9 100644
--- a/src/townname_type.h
+++ b/src/townname_type.h
@@ -17,6 +17,10 @@
#include "newgrf_townname.h"
#include "town_type.h"
+#include <set>
+#include <string>
+
+typedef std::set<std::string> TownNames;
/**
* Struct holding a parameters used to generate town name.