Fix GUI1 help topics not showing

This commit is contained in:
Celtic Minstrel 2017-04-10 14:16:42 -04:00 committed by Celtic Minstrel
parent 5fffe8539f
commit f96aa94e03

View file

@ -125,8 +125,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 (auto child = item.cfg.optional_child(#name)) \
handle_##name##_cfg(child.value()); \
if (item.key == #name) \
handle_##name##_cfg(item.cfg); \
} while (0)
TRY(text);