Skip to content

Commit

Permalink
Add warning about additional characters being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
AI0867 committed Nov 5, 2017
1 parent 8b1902e commit 2fec007
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game_events/action_wml.cpp
Expand Up @@ -692,6 +692,9 @@ WML_HANDLER_FUNCTION(set_variables,, cfg)
bool remove_empty = split_element["remove_empty"].to_bool();

char* separator = separator_string.empty() ? nullptr : &separator_string[0];
if(separator_string.size() > 1){
ERR_NG << "[set_variables] [split] separator only supports 1 character, multiple passed: " << split_element["separator"] << " with " << cfg.get_config().debug() << std::endl;
}

std::vector<std::string> split_vector;

Expand Down

0 comments on commit 2fec007

Please sign in to comment.