Fix: Compilation warnings in story_gui and script_story_page
See: #7896
This commit is contained in:

committed by
Niels Martin Hansen

parent
71e9c2a71b
commit
f11cd8f2d0
@@ -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,
|
||||
|
Reference in New Issue
Block a user