Skip to content

Commit

Permalink
Don't show a message for missing name in [event] if it has an id
Browse files Browse the repository at this point in the history
(cherry-picked from commit e317f34)
  • Loading branch information
CelticMinstrel committed Oct 7, 2018
1 parent 751a697 commit 6aaf275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game_events/manager_impl.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6aaf275

Please sign in to comment.