Don't show a message for missing name in [event] if it has an id

This commit is contained in:
Celtic Minstrel 2018-03-24 12:32:04 -04:00
parent 00e9f4482f
commit e317f346e8

View file

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