diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs b/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs index 006b730..7312bc3 100644 --- a/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs +++ b/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs | |||
@@ -532,7 +532,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
532 | 532 | ||
533 | lock(m_Materials) | 533 | lock(m_Materials) |
534 | { | 534 | { |
535 | if(oldid != UUID.Zero) | 535 | if(oldid != UUID.Zero && m_MaterialsRefCount.ContainsKey(oldid)) |
536 | { | 536 | { |
537 | m_MaterialsRefCount[oldid]--; | 537 | m_MaterialsRefCount[oldid]--; |
538 | if(m_MaterialsRefCount[oldid] <= 0) | 538 | if(m_MaterialsRefCount[oldid] <= 0) |