This commit is contained in:
Celtic Minstrel 2017-03-10 01:16:33 -05:00 committed by GitHub
parent 6de1c9441f
commit 2a498070f7

View file

@ -2886,7 +2886,7 @@ static int intf_modify_ai(lua_State *L, const char* action)
size_t len = std::string::npos, open_brak = path.find_last_of('[');
size_t dot = path.find_last_of('.');
if(open_brak != len) {
len = open_brak = dot - 1;
len = open_brak - dot - 1;
}
cfg.add_child(path.substr(dot + 1, len), component);
ai::manager::modify_active_ai_for_side(side_num, cfg);