Fix GUI1 help topics not showing

This commit is contained in:
Celtic Minstrel 2017-04-10 14:16:42 -04:00
parent f421a74864
commit 8ac0ba61b4

View file

@ -116,8 +116,8 @@ void help_text_area::set_items()
const config& parsed_items = shown_topic_->text.parsed_text();
for(auto& item : parsed_items.all_children_range()) {
#define TRY(name) do { \
if (config &child = item.cfg.child(#name)) \
handle_##name##_cfg(child); \
if (item.key == #name) \
handle_##name##_cfg(item.cfg); \
} while (0)
TRY(text);