lsGetWindlightScene() returns raw int value, which makes unable to compare to another value with llListFindList()

This commit is contained in:
Makopoppo
2011-07-07 23:38:22 +09:00
committed by Justin Clark-Casey (justincc)
parent 04f8d0e45d
commit b983f38e2a

View File

@@ -130,7 +130,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
int idx = 0;
while (idx < rules.Length)
{
uint rule = (uint)rules.GetLSLIntegerItem(idx);
LSL_Integer ruleInt = rules.GetLSLIntegerItem(idx);
uint rule = (uint)ruleInt;
LSL_List toadd = new LSL_List();
switch (rule)
@@ -247,7 +248,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (toadd.Length > 0)
{
values.Add(rule);
values.Add(ruleInt);
values.Add(toadd.Data[0]);
}
idx++;