Fixes dictionary uses (#7)
This commit is contained in:
parent
d4a52344f2
commit
916d404c51
161 changed files with 1211 additions and 1722 deletions
|
|
@ -219,7 +219,11 @@ namespace Server.Items
|
|||
|
||||
public static StealableInstance GetStealableInstance(Item item)
|
||||
{
|
||||
return (StealableInstance)Instance?.m_Table[item];
|
||||
if (Instance == null)
|
||||
return null;
|
||||
|
||||
Instance.m_Table.TryGetValue(item, out StealableInstance value);
|
||||
return value;
|
||||
}
|
||||
|
||||
public override void OnDelete()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue