diff --git a/Server/Region.cs b/Server/Region.cs index 1359a8f75..cdd084499 100644 --- a/Server/Region.cs +++ b/Server/Region.cs @@ -1137,8 +1137,9 @@ namespace Server if ( s == null ) return false; -#if Framework_4_0 + Type type = typeof(T); +#if Framework_4_0 T tempVal; if( type.IsEnum && Enum.TryParse( s, true, out tempVal ) )