From 2e7202e8a13471337494fe063cd2f2ef5db3855b Mon Sep 17 00:00:00 2001 From: Sei-Lisa Date: Thu, 7 Sep 2017 16:33:16 +0200 Subject: [PATCH] Fix bug where chains didn't detach on standup. (#33) This was introduced in commit 5c4f5b3. --- AVsitter2/Plugins/AVcontrol/LockGuard/[AV]LockGuard.lsl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AVsitter2/Plugins/AVcontrol/LockGuard/[AV]LockGuard.lsl b/AVsitter2/Plugins/AVcontrol/LockGuard/[AV]LockGuard.lsl index 521b2d8..51d3781 100644 --- a/AVsitter2/Plugins/AVcontrol/LockGuard/[AV]LockGuard.lsl +++ b/AVsitter2/Plugins/AVcontrol/LockGuard/[AV]LockGuard.lsl @@ -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"); }