mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Remove pointless cluttering SOP.ParentGroup != null checks.
The only times when ParentGroup might be null is during regression tests (which might not be a valid thing) and when scene objects are being constructed from the database. At all other times it's not possible for a SOP not to have a SOG parent.
This commit is contained in:
@@ -97,8 +97,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
return;
|
||||
|
||||
m_log.Debug("Paid: " + objectID + " from " + agentID + ", amount " + amount);
|
||||
if (part.ParentGroup != null)
|
||||
part = part.ParentGroup.RootPart;
|
||||
|
||||
part = part.ParentGroup.RootPart;
|
||||
|
||||
if (part != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user