Changeset - r24286:92a5312e02d8
[Not reviewed]
master
0 1 0
Charles Pigott - 4 years ago 2020-06-27 10:00:53
charlespigott@googlemail.com
Fix: Warning about using the wrong enum type
1 file changed with 6 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_story_page.cpp
Show inline comments
 
@@ -119,16 +119,16 @@ static inline bool StoryPageElementTypeR
 
	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();
0 comments (0 inline, 0 general)