summaryrefslogtreecommitdiff
path: root/src/script/api/script_goal.hpp
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2020-06-27 13:59:15 +0100
committerCharles Pigott <charlespigott@googlemail.com>2020-06-27 14:51:14 +0100
commitdc8d0089e95a0fb9a77330fe890f72ac3bb430ea (patch)
treec3b9d4dc9d2cf6e4a2ba74fff2fbb78c91f15297 /src/script/api/script_goal.hpp
parent887b912af123b5a9bf2339a98e724afe99e6a03d (diff)
downloadopenttd-dc8d0089e95a0fb9a77330fe890f72ac3bb430ea.tar.xz
Codechange: Make sure script enums are the same size as their normal counterparts
Diffstat (limited to 'src/script/api/script_goal.hpp')
-rw-r--r--src/script/api/script_goal.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_goal.hpp b/src/script/api/script_goal.hpp
index 372d6e8b4..2261dcc00 100644
--- a/src/script/api/script_goal.hpp
+++ b/src/script/api/script_goal.hpp
@@ -36,7 +36,7 @@ public:
/**
* Goal types that can be given to a goal.
*/
- enum GoalType {
+ enum GoalType : byte {
/* Note: these values represent part of the in-game GoalType enum */
GT_NONE = ::GT_NONE, ///< Destination is not linked.
GT_TILE = ::GT_TILE, ///< Destination is a tile.