Skip to content

Commit

Permalink
Fixup last commit
Browse files Browse the repository at this point in the history
(cherry-picked from commit cf38553)
  • Loading branch information
CelticMinstrel committed Oct 7, 2018
1 parent e92c97c commit d422f21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game_events/manager_impl.cpp
Expand Up @@ -118,10 +118,10 @@ void event_handlers::add_event_handler(const config& cfg, bool is_menu_item)
// name field. Will be moved into the handler.
config event_cfg = cfg;

if(!name.empty()) {
// Split the name field...
std::vector<std::string> standardized_names = utils::split(name);
// Split the name field...
std::vector<std::string> standardized_names = utils::split(name);

if(!name.empty()) {
// ...and standardize each one individually. This ensures they're all valid for by-name lookup.
for(std::string& single_name : standardized_names) {
if(!utils::might_contain_variables(single_name)) {
Expand Down

0 comments on commit d422f21

Please sign in to comment.