remove wrong assert
this assert didn't prevent anything bad. It was just there to make the code clearer because it was assumed to be true. The assumption was false so it was removed.
This commit is contained in:
parent
494f2701ae
commit
e27280ec31
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,8 @@ struct persist_choice: mp_sync::user_choice {
|
|||
, side(side_num) {
|
||||
}
|
||||
virtual config query_user(int side_for) const {
|
||||
assert(side == side_for);
|
||||
//side can be different from side_for: if side was null-controlled
|
||||
//then get_user_choice will use the next non-null-controlled side instead
|
||||
config ret;
|
||||
ret["side"] = side;
|
||||
ret.add_child("variables",ctx.get_var(var_name));
|
||||
|
|
Loading…
Add table
Reference in a new issue