mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
safeguard against unknown material replacemet
This commit is contained in:
@@ -532,7 +532,7 @@ namespace OpenSim.Region.OptionalModules.Materials
|
||||
|
||||
lock(m_Materials)
|
||||
{
|
||||
if(oldid != UUID.Zero)
|
||||
if(oldid != UUID.Zero && m_MaterialsRefCount.ContainsKey(oldid))
|
||||
{
|
||||
m_MaterialsRefCount[oldid]--;
|
||||
if(m_MaterialsRefCount[oldid] <= 0)
|
||||
|
||||
Reference in New Issue
Block a user