From e5f931ef42ca169003d2282a8a585ea208b5f943 Mon Sep 17 00:00:00 2001 From: Charles Pigott Date: Sat, 27 Jun 2020 11:00:53 +0100 Subject: Fix: Warning about using the wrong enum type --- src/script/api/script_story_page.cpp | 12 ++++++------ 1 file 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(); -- cgit v1.2.3-54-g00ecf