summaryrefslogtreecommitdiff
path: root/src/signs_base.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-05-17 23:31:59 +0200
committerMichael Lutz <michi@icosahedron.de>2020-05-21 20:02:34 +0200
commit63ccb36ef3ecd53a503c0e9fea87f0784802af0f (patch)
treed3e1134029fd437d1ad2d948f83592b930e9456f /src/signs_base.h
parent9b6f5e3bb850b6cff02cc761767fcdf49c681645 (diff)
downloadopenttd-63ccb36ef3ecd53a503c0e9fea87f0784802af0f.tar.xz
Codechange: Use std::string for most of the user-settable custom names.
Diffstat (limited to 'src/signs_base.h')
-rw-r--r--src/signs_base.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/signs_base.h b/src/signs_base.h
index 6cc7dc6d8..795f3b8e5 100644
--- a/src/signs_base.h
+++ b/src/signs_base.h
@@ -14,12 +14,13 @@
#include "viewport_type.h"
#include "core/pool_type.hpp"
#include "company_type.h"
+#include <string>
typedef Pool<Sign, SignID, 16, 64000> SignPool;
extern SignPool _sign_pool;
struct Sign : SignPool::PoolItem<&_sign_pool> {
- char *name;
+ std::string name;
TrackedViewportSign sign;
int32 x;
int32 y;