trivial generic
This commit is contained in:
parent
f3d56091b6
commit
ab1f707545
1 changed files with 2 additions and 2 deletions
|
|
@ -545,7 +545,7 @@ namespace Server
|
|||
public Direction Direction{ get{ return m_Direction; } }
|
||||
public bool Blocked{ get{ return m_Blocked; } set{ m_Blocked = value; } }
|
||||
|
||||
private static Queue m_Pool = new Queue();
|
||||
private static Queue m_Pool<MovementEventArgs> = new Queue<MovementEventArgs>();
|
||||
|
||||
public static MovementEventArgs Create( Mobile mobile, Direction dir )
|
||||
{
|
||||
|
|
@ -553,7 +553,7 @@ namespace Server
|
|||
|
||||
if ( m_Pool.Count > 0 )
|
||||
{
|
||||
args = (MovementEventArgs)m_Pool.Dequeue();
|
||||
args = m_Pool.Dequeue();
|
||||
|
||||
args.m_Mobile = mobile;
|
||||
args.m_Direction = dir;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue