summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2020-06-27 11:00:53 +0100
committerCharles Pigott <charlespigott@googlemail.com>2020-06-27 14:51:14 +0100
commite5f931ef42ca169003d2282a8a585ea208b5f943 (patch)
tree6c64dd56622de9393f0779613423a49e7c6781b8 /src/script/api
parent64b1c70fddc8b7ef2e8f629d6e5e1749f21a0e4b (diff)
downloadopenttd-e5f931ef42ca169003d2282a8a585ea208b5f943.tar.xz
Fix: Warning about using the wrong enum type
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/script_story_page.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/script/api/script_story_page.cpp b/src/script/api/script_story_page.cpp
index 8fda69e6f..4ee90e218 100644
--- a/src/script/api/script_story_page.cpp
+++ b/src/script/api/script_story_page.cpp
@@ -119,16 +119,16 @@ static inline bool StoryPageElementTypeRequiresText(StoryPageElementType type)
uint32 refid = 0;
TileIndex reftile = 0;
switch (type) {
- case SPET_LOCATION:
+ case ::SPET_LOCATION:
reftile = reference;
break;
- case SPET_GOAL:
- case SPET_BUTTON_PUSH:
- case SPET_BUTTON_TILE:
- case SPET_BUTTON_VEHICLE:
+ case ::SPET_GOAL:
+ case ::SPET_BUTTON_PUSH:
+ case ::SPET_BUTTON_TILE:
+ case ::SPET_BUTTON_VEHICLE:
refid = reference;
break;
- case SPET_TEXT:
+ case ::SPET_TEXT:
break;
default:
NOT_REACHED();