summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorJonathan G Rennison <j.g.rennison@gmail.com>2020-05-27 21:09:31 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2020-05-27 22:22:56 +0200
commitf11cd8f2d07b69eeedb5c3d3dc7c9ade37151707 (patch)
tree4268b30d7550b52848bc1e75c02ae435239f5ad4 /src/script
parent71e9c2a71b286fc7fc282398faee86eab401a047 (diff)
downloadopenttd-f11cd8f2d07b69eeedb5c3d3dc7c9ade37151707.tar.xz
Fix: Compilation warnings in story_gui and script_story_page
See: #7896
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/script_story_page.cpp8
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,