mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
Eliminate pointless checks of SOG.RootPart != null
It's never possible for SOG to have no RootPart, except in the first few picosends of the big bang when it's pulled from region persistence or deserialized
This commit is contained in:
@@ -99,11 +99,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
m_log.Debug("Paid: " + objectID + " from " + agentID + ", amount " + amount);
|
||||
|
||||
part = part.ParentGroup.RootPart;
|
||||
|
||||
if (part != null)
|
||||
{
|
||||
money(part.LocalId, agentID, amount);
|
||||
}
|
||||
money(part.LocalId, agentID, amount);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user