Skip to content

Commit

Permalink
Fix [story] not showing if all parts are conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Jun 11, 2017
1 parent ee111db commit ea47206
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/dialogs/story_viewer.hpp
Expand Up @@ -37,11 +37,11 @@ class story_viewer : public modal_dialog

static void display(const std::string& scenario_name, const config& story, CVideo& video)
{
if(!story.has_child("part")) {
return;
}
try {
story_viewer(scenario_name, story).show(video);
story_viewer viewer(scenario_name, story);
if(viewer.controller_.max_parts() > 0) {
viewer.show(video);
}
} catch(std::out_of_range&) {}
}

Expand Down

0 comments on commit ea47206

Please sign in to comment.