fixup 6de1c9441f
This commit is contained in:
parent
6de1c9441f
commit
2a498070f7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue