Fixes dictionary uses (#7)
This commit is contained in:
parent
d4a52344f2
commit
916d404c51
161 changed files with 1211 additions and 1722 deletions
|
|
@ -390,9 +390,7 @@ namespace Server.Items
|
|||
|
||||
public static void Close(Container c)
|
||||
{
|
||||
m_Table.TryGetValue(c, out Timer t);
|
||||
|
||||
if (t != null)
|
||||
if (m_Table.TryGetValue(c, out Timer t))
|
||||
{
|
||||
t.Stop();
|
||||
m_Table.Remove(c);
|
||||
|
|
@ -436,4 +434,4 @@ namespace Server.Items
|
|||
DynamicFurniture.Close(m_Container);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue