diff --git a/placefinder/main.cpp b/placefinder/main.cpp index a3f75b5..8064762 100644 --- a/placefinder/main.cpp +++ b/placefinder/main.cpp @@ -53,11 +53,17 @@ bool parse_parametr(const pt::Space * input_par, std::wstring & param, const cha { if( input_par ) { - if( input_par->table_size() != 1 ) + if( input_par->is_table() && input_par->table_size() == 1 ) + { + pt::Space * first_item = input_par->value.value_table.back(); + + if( first_item->is_table() && first_item->table_size() == 1 ) + param = first_item->value.value_table.back()->to_wstr(); + } + else { std::cout << error_msg << std::endl; return false; - param = input_par->value.value_table.back()->to_wstr(); } }