prevent null ref
This commit is contained in:
parent
8690feea0a
commit
bd8dc7168f
1 changed files with 226 additions and 223 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue