safeguard against unknown material replacemet
parent
b3eda582ec
commit
72e20028d1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue