[PATCH 2/2] [FIX] osGetPrimitiveParams() and osSetPrimitiveParams()
crashes throwing System.NullReferenceException Signed-off-by: BlueWall <jamesh@bluewallgroup.com>bulletsim
parent
80010f8908
commit
ee92f22f2a
|
@ -2295,6 +2295,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
CheckThreatLevel(ThreatLevel.High, "osGetPrimitiveParams");
|
CheckThreatLevel(ThreatLevel.High, "osGetPrimitiveParams");
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
InitLSL();
|
||||||
|
|
||||||
return m_LSL_Api.GetLinkPrimitiveParamsEx(prim, rules);
|
return m_LSL_Api.GetLinkPrimitiveParamsEx(prim, rules);
|
||||||
}
|
}
|
||||||
|
@ -2303,6 +2304,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
CheckThreatLevel(ThreatLevel.High, "osSetPrimitiveParams");
|
CheckThreatLevel(ThreatLevel.High, "osSetPrimitiveParams");
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
InitLSL();
|
||||||
|
|
||||||
m_LSL_Api.SetPrimitiveParamsEx(prim, rules);
|
m_LSL_Api.SetPrimitiveParamsEx(prim, rules);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue