Fix bug where chains didn't detach on standup. (#33)

This was introduced in commit 5c4f5b3.
This commit is contained in:
Sei-Lisa 2017-09-07 16:33:16 +02:00 committed by codeviolet
parent c2e2d63f70
commit 2e7202e8a1

View file

@ -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");
}