Fix: Compilation warnings in story_gui and script_story_page

See: #7896
This commit is contained in:
Jonathan G Rennison
2020-05-27 21:09:31 +01:00
committed by Niels Martin Hansen
parent 71e9c2a71b
commit f11cd8f2d0
2 changed files with 10 additions and 6 deletions

View File

@@ -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,