proper disguise persistence using kvp instead of dictionary entries
This commit is contained in:
parent
91eed1e2ed
commit
705236b923
1 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Network;
|
||||
|
|
@ -42,12 +42,12 @@ namespace Server.Items
|
|||
|
||||
writer.Write( timerCount );
|
||||
|
||||
foreach ( DictionaryEntry entry in DisguiseTimers.Timers )
|
||||
foreach ( KeyValuePair<Mobile, Timer> entry in DisguiseTimers.Timers )
|
||||
{
|
||||
Mobile m = (Mobile)entry.Key;
|
||||
Mobile m = entry.Key;
|
||||
|
||||
writer.Write( m );
|
||||
writer.Write( ((Timer)entry.Value).Next - DateTime.UtcNow );
|
||||
writer.Write( entry.Value.Next - DateTime.UtcNow );
|
||||
writer.Write( m.NameMod );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue