chore: Fixes variable types for possible performance issues (#2172)
This commit is contained in:
parent
6d43f2549c
commit
da517f56c4
82 changed files with 332 additions and 343 deletions
|
|
@ -266,9 +266,11 @@ public partial class MistletoeDeed : Item
|
|||
|
||||
if (itemID > 0)
|
||||
{
|
||||
Item addon = new MistletoeAddon(Hue);
|
||||
var addon = new MistletoeAddon(Hue)
|
||||
{
|
||||
ItemID = itemID
|
||||
};
|
||||
|
||||
addon.ItemID = itemID;
|
||||
addon.MoveToWorld(loc, from.Map);
|
||||
|
||||
house.Addons.Add(addon);
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ namespace Server.Engines.Events
|
|||
|
||||
if (CheckMobile(m_From))
|
||||
{
|
||||
Mobile twin = new NaughtyTwin(m_From);
|
||||
var twin = new NaughtyTwin(m_From);
|
||||
|
||||
if (twin.Deleted)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue