From aa682987f5abe0256efe354913de7ab5b466749f Mon Sep 17 00:00:00 2001 From: mark Date: Sun, 4 Oct 2009 08:54:39 +0000 Subject: [PATCH] double oops! --- Scripts/Mobiles/PlayerMobile.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Scripts/Mobiles/PlayerMobile.cs b/Scripts/Mobiles/PlayerMobile.cs index 56ce17dd7..3cf823073 100644 --- a/Scripts/Mobiles/PlayerMobile.cs +++ b/Scripts/Mobiles/PlayerMobile.cs @@ -3204,10 +3204,14 @@ namespace Server.Mobiles Type t = m.GetType(); if ( t == oldType || t == newType ) { - if ( this.NetState.IsPost7000 ) { - Send( new MobileMoving( m, Notoriety.Compute( this, m ) ) ); - } else { - Send( new MobileMovingOld( m, Notoriety.Compute( this, m ) ) ); + NetState ns = this.NetState; + + if ( ns != null ) { + if ( ns.IsPost7000 ) { + ns.Send( new MobileMoving( m, Notoriety.Compute( this, m ) ) ); + } else { + ns.Send( new MobileMovingOld( m, Notoriety.Compute( this, m ) ) ); + } } } }