diff options
Diffstat (limited to 'src/core/cs_set.c')
-rw-r--r-- | src/core/cs_set.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/cs_set.c b/src/core/cs_set.c index 0a8d6ac5b..75850f453 100644 --- a/src/core/cs_set.c +++ b/src/core/cs_set.c @@ -466,11 +466,10 @@ class CommandCSSet : public Command { ChanAccess *access; - for (unsigned i = 0; i < ci->GetAccessCount(); i++) + for (unsigned i = ci->GetAccessCount() - 1; 0 <= i; --i) { access = ci->GetAccess(i); - if (!access->in_use) - continue; + /* This will probably cause wrong levels to be set, but hey, * it's better than losing it altogether. */ @@ -490,9 +489,6 @@ class CommandCSSet : public Command } } - /* The above may have set an access entry to not be in use, this will clean that up. */ - ci->CleanAccess(); - reset_levels(ci); ci->SetFlag(CI_XOP); } |