prevent null ref

This commit is contained in:
xavier@runuo.com 2013-03-11 14:49:19 +00:00
parent 8690feea0a
commit bd8dc7168f

View file

@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
using Server; using Server;
@ -129,15 +129,17 @@ namespace Server.Engines.MLQuests.Items
set { m_Message = value; } set { m_Message = value; }
} }
/* set default config to prevent null ref @ serialize due to uninitialized data */
[Constructable] [Constructable]
public TicketTeleporter() public TicketTeleporter()
: this( Point3D.Zero, null, null, null ) : this( new Point3D( 6223, 336, 60 ), Map.Trammel )
{ {
} }
[Constructable] [Constructable]
public TicketTeleporter( Point3D pointDest, Map mapDest ) public TicketTeleporter( Point3D pointDest, Map mapDest )
: this( pointDest, mapDest, null, null ) : this( pointDest, mapDest, typeof( AcidProofRope ), 1074272 )
{ {
} }
@ -221,3 +223,4 @@ namespace Server.Engines.MLQuests.Items
} }
} }
} }