Fix: Warning about using the wrong enum type

This commit is contained in:
Charles Pigott 2020-06-27 11:00:53 +01:00
parent 64b1c70fdd
commit e5f931ef42
1 changed files with 6 additions and 6 deletions

View File

@ -119,16 +119,16 @@ static inline bool StoryPageElementTypeRequiresText(StoryPageElementType type)
uint32 refid = 0; uint32 refid = 0;
TileIndex reftile = 0; TileIndex reftile = 0;
switch (type) { switch (type) {
case SPET_LOCATION: case ::SPET_LOCATION:
reftile = reference; reftile = reference;
break; break;
case SPET_GOAL: case ::SPET_GOAL:
case SPET_BUTTON_PUSH: case ::SPET_BUTTON_PUSH:
case SPET_BUTTON_TILE: case ::SPET_BUTTON_TILE:
case SPET_BUTTON_VEHICLE: case ::SPET_BUTTON_VEHICLE:
refid = reference; refid = reference;
break; break;
case SPET_TEXT: case ::SPET_TEXT:
break; break;
default: default:
NOT_REACHED(); NOT_REACHED();