summaryrefslogtreecommitdiff
path: root/src/command_type.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-29 16:16:51 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-29 19:02:18 +0200
commitef991b1772f5f8b4874f76ea715a9a95811ad979 (patch)
tree1eec8f86826d2865bceb31612843dba05f237d86 /src/command_type.h
parent2e136285e1dfb4435c11769bf7cabb1ec2057e08 (diff)
downloadopenttd-ef991b1772f5f8b4874f76ea715a9a95811ad979.tar.xz
Codechange: [Network] Use std::string in CommandPacket
Diffstat (limited to 'src/command_type.h')
-rw-r--r--src/command_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command_type.h b/src/command_type.h
index a8e16e6d7..61154ea04 100644
--- a/src/command_type.h
+++ b/src/command_type.h
@@ -482,7 +482,7 @@ struct CommandContainer {
uint32 p2; ///< parameter p2.
uint32 cmd; ///< command being executed.
CommandCallback *callback; ///< any callback function executed upon successful completion of the command.
- char text[32 * MAX_CHAR_LENGTH]; ///< possible text sent for name changes etc, in bytes including '\0'.
+ std::string text; ///< possible text sent for name changes etc.
};
#endif /* COMMAND_TYPE_H */