sanity checks.

This commit is contained in:
xavier 2011-07-30 13:55:08 +00:00
parent 0684f0c1bd
commit cc001df65e
2 changed files with 5 additions and 2 deletions

View file

@ -3744,7 +3744,7 @@ namespace Server.Mobiles
if ( !this.Young )
return false;
if ( !((BaseRegion)Region).YoungProtected )
if ( Region is BaseRegion && !((BaseRegion)Region).YoungProtected )
return false;
if( from is BaseCreature && ((BaseCreature)from).IgnoreYoungProtection )