Skip to content

Commit

Permalink
Fix bug where chains didn't detach on standup. (AVsitter#33)
Browse files Browse the repository at this point in the history
This was introduced in commit 5c4f5b3.
  • Loading branch information
Sei-Lisa authored and codeviolet committed Sep 7, 2017
1 parent c2e2d63 commit 2e7202e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions AVsitter2/Plugins/AVcontrol/LockGuard/[AV]LockGuard.lsl
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ goChain(list new_links)
// unlink unused links
for (; index < llGetListLength(links); index += 2)
{
integer found = llListFindList(new_links, [llList2String(links, index)]);
if (~found)
if (llListFindList(new_links, [llList2String(links, index)]) == -1)
{
llWhisper(LOCKGUARD_CHANNEL, "lockguard " + (string)avatar + " " + llList2String(links, index) + " unlink");
}
Expand Down

0 comments on commit 2e7202e

Please sign in to comment.