Modernization Fixes & Updates to Default Values (#3)

This commit is contained in:
Kamron Batman 2018-10-28 00:33:16 -07:00 committed by GitHub
parent 445eddff68
commit dcf64091b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
768 changed files with 10507 additions and 14196 deletions

View file

@ -1,5 +1,6 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Server.Network;
namespace Server.Items
@ -87,14 +88,14 @@ namespace Server.Items
}
}
private Hashtable m_Entries;
private Dictionary<Mobile, ScoreEntry> m_Entries;
private ScoreEntry GetEntryFor( Mobile from )
{
if ( m_Entries == null )
m_Entries = new Hashtable();
m_Entries = new Dictionary<Mobile, ScoreEntry>();
ScoreEntry e = (ScoreEntry)m_Entries[from];
ScoreEntry e = m_Entries[from];
if ( e == null )
m_Entries[from] = e = new ScoreEntry();