diff options
author | Jonathan G Rennison <j.g.rennison@gmail.com> | 2020-05-27 21:09:31 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-05-27 22:22:56 +0200 |
commit | f11cd8f2d07b69eeedb5c3d3dc7c9ade37151707 (patch) | |
tree | 4268b30d7550b52848bc1e75c02ae435239f5ad4 /src/script/api | |
parent | 71e9c2a71b286fc7fc282398faee86eab401a047 (diff) | |
download | openttd-f11cd8f2d07b69eeedb5c3d3dc7c9ade37151707.tar.xz |
Fix: Compilation warnings in story_gui and script_story_page
See: #7896
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/script_story_page.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/script/api/script_story_page.cpp b/src/script/api/script_story_page.cpp index 39ae3d53f..8fda69e6f 100644 --- a/src/script/api/script_story_page.cpp +++ b/src/script/api/script_story_page.cpp @@ -83,6 +83,10 @@ static inline bool StoryPageElementTypeRequiresText(StoryPageElementType type) case SPET_BUTTON_VEHICLE: refid = reference; break; + case SPET_TEXT: + break; + default: + NOT_REACHED(); } if (!ScriptObject::DoCommand(reftile, @@ -124,6 +128,10 @@ static inline bool StoryPageElementTypeRequiresText(StoryPageElementType type) case SPET_BUTTON_VEHICLE: refid = reference; break; + case SPET_TEXT: + break; + default: + NOT_REACHED(); } return ScriptObject::DoCommand(reftile, |