Don't show a message for missing name in [event] if it has an id
This commit is contained in:
parent
00e9f4482f
commit
e317f346e8
1 changed files with 2 additions and 2 deletions
|
@ -109,8 +109,8 @@ void event_handlers::add_event_handler(const config& cfg, bool is_menu_item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(name.empty()) {
|
if(name.empty() && id.empty()) {
|
||||||
lg::wml_error() << "[event] is missing name field\n";
|
lg::wml_error() << "[event] is missing name or id field\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue