fix: Fixes Point2D ctor (#1340)

This commit is contained in:
Kamron Batman 2023-02-13 23:28:23 -08:00 • committed by GitHub
parent f24c6a08dd
commit 65c196a8ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 45 additions and 35 deletions

View file

@ -115,7 +115,7 @@ namespace Server.Gumps
{
case 1: // Current location
{
toSet = new Point2D(m_Mobile.Location.X, m_Mobile.Location.Y);
toSet = new Point2D(m_Mobile.Location);
shouldSet = true;
shouldSend = true;
@ -198,7 +198,7 @@ namespace Server.Gumps
{
try
{
var p = new Point2D(point3D.X, point3D.Y);
var p = new Point2D(point3D);
CommandLogging.LogChangeProperty(m_Mobile, m_Object, m_Property.Name, p.ToString());
m_Property.SetValue(m_Object, p, null);
m_PropertiesGump.OnValueChanged(m_Object, m_Property);