Fixes more casting
This commit is contained in:
parent
aba9452161
commit
74f498c1c8
17 changed files with 581 additions and 805 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue