diff options
author | Pavel Stupnikov <dp@dpointer.org> | 2020-04-10 11:05:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-10 10:05:52 +0200 |
commit | f14a69e52f77b442e8615f102f5152cb0ef0d2ed (patch) | |
tree | 6abe82284758f4811042442cb911f0e840d03f62 /src | |
parent | 1e3e960fce149b7e6be4b1e9eecff4d3fe1c2a20 (diff) | |
download | openttd-f14a69e52f77b442e8615f102f5152cb0ef0d2ed.tar.xz |
Fix a5681d3e: Make goal question ID use 16 bits again (#8072)
Diffstat (limited to 'src')
-rw-r--r-- | src/goal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/goal.cpp b/src/goal.cpp index 9c9441e9e..02ec85255 100644 --- a/src/goal.cpp +++ b/src/goal.cpp @@ -244,7 +244,7 @@ CommandCost CmdSetGoalCompleted(TileIndex tile, DoCommandFlag flags, uint32 p1, */ CommandCost CmdGoalQuestion(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text) { - uint16 uniqueid = (GoalType)GB(p1, 0, 16); + uint16 uniqueid = (uint16)GB(p1, 0, 16); CompanyID company = (CompanyID)GB(p1, 16, 8); ClientID client = (ClientID)GB(p1, 16, 16); |