mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-24 14:13:18 +00:00
Don't show a message for missing name in [event] if it has an id
(cherry-picked from commit e317f346e8d9c4363075532efb762cc42646d42f)
This commit is contained in:
parent
751a697093
commit
6aaf275a4e
@ -109,8 +109,8 @@ void event_handlers::add_event_handler(const config& cfg, bool is_menu_item)
|
||||
}
|
||||
}
|
||||
|
||||
if(name.empty()) {
|
||||
lg::wml_error() << "[event] is missing name field\n";
|
||||
if(name.empty() && id.empty()) {
|
||||
lg::wml_error() << "[event] is missing name or id field\n";
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user