[PATCH 2/2] [FIX] osGetPrimitiveParams() and osSetPrimitiveParams()

crashes throwing System.NullReferenceException

Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
bulletsim
Makopoppo 2011-06-25 11:13:55 +09:00 committed by BlueWall
parent 80010f8908
commit ee92f22f2a
1 changed files with 2 additions and 0 deletions

View File

@ -2295,6 +2295,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
CheckThreatLevel(ThreatLevel.High, "osGetPrimitiveParams");
m_host.AddScriptLPS(1);
InitLSL();
return m_LSL_Api.GetLinkPrimitiveParamsEx(prim, rules);
}
@ -2303,6 +2304,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
CheckThreatLevel(ThreatLevel.High, "osSetPrimitiveParams");
m_host.AddScriptLPS(1);
InitLSL();
m_LSL_Api.SetPrimitiveParamsEx(prim, rules);
}