Fixes more casting

This commit is contained in:
Kamron Batman 2018-09-09 08:03:01 -07:00
parent aba9452161
commit 74f498c1c8
17 changed files with 581 additions and 805 deletions

View file

@ -490,10 +490,8 @@ namespace Server
if ( obj == null )
return 1;
Region reg = obj as Region;
if ( reg == null )
throw new ArgumentException( "obj is not a Region", "obj" );
if ( !(obj is Region reg) )
throw new ArgumentException( "obj is not a Region", nameof(obj) );
// Dynamic regions go first
if ( this.Dynamic )