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:
Celtic Minstrel 2018-03-24 12:32:04 -04:00
parent 751a697093
commit 6aaf275a4e

View File

@ -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;
}