Skip to content

Commit

Permalink
Story Viewer: don't only validate presence of [part] tags under [story]
Browse files Browse the repository at this point in the history
I forgot control tags like [switch] are allowed under [story]. This should hopefully fix bug #25655
  • Loading branch information
Vultraz committed Apr 14, 2017
1 parent 1adeb98 commit f900497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storyscreen/interface.cpp
Expand Up @@ -44,7 +44,7 @@ void show_story(CVideo& video, const std::string &scenario_name,
cfg.append_children(iter);
}

if(!cfg.has_child("part")) {
if(cfg.empty()) {
return;
}

Expand Down

0 comments on commit f900497

Please sign in to comment.