Use sane default if leash length is 0
This should never happen tho
This commit is contained in:
@@ -164,6 +164,7 @@ integer CheckCommandAuth(key kCmdGiver, integer iAuth)
|
||||
|
||||
SetLength(integer iIn)
|
||||
{
|
||||
if (iIn == 0) iIn = 3; // i had a rare edge case where this happened
|
||||
g_iLength = iIn;
|
||||
if (g_kLeashedTo != NULL_KEY) {
|
||||
llTargetRemove(g_iTargetHandle);
|
||||
|
||||
Reference in New Issue
Block a user