System.InvalidOperationException: Failed to compare two elements in the array. ---> System.InvalidCastException: Specified cast is not valid.
at Server.Misc.SpawnFinder.TileComparer.Compare(Object o1, Object o2)
at System.Array.SorterObjectArray.SwapIfGreaterWithItems(Int32 a, Int32 b)
at System.Array.SorterObjectArray.DepthLimitedQuickSort(Int32 left, Int32 right, Int32 depthLimit)
--- End of inner exception stack trace ---
at System.Array.SorterObjectArray.DepthLimitedQuickSort(Int32 left, Int32 right, Int32 depthLimit)
at System.Array.Sort(Array keys, Array items, Int32 index, Int32 length, IComparer comparer)
at System.Collections.ArrayList.Sort(Int32 index, Int32 count, IComparer comparer)
at Server.Misc.SpawnFinder.FindSpawnTileInternal(PlayerMobile pm, Point3D centerPoint, Point2D currentPoint, Point3D& spawnPoint, LandType landType, EffectType effectType, Int32 effectHue)
at Server.Misc.SpawnFinder.<>c__DisplayClass4.<FindSpiral>b__3(Map map, Int32 x, Int32 y)
at Server.Searches.SpiralSearch.SearchSpiral(Map map, Int32 start, SearchDirection direction, Boolean randomStart, Tour tour)
at Server.Misc.SpawnFinder.FindSpiral(PlayerMobile pm, Point3D centerPoint, Point3D& spawnPoint, LandType landType, Int32 distance, Boolean inwards, EffectType effectType, Int32 effectHue)
at Server.Misc.RandomEncounterEngine.GenerateEncounter(PlayerMobile playerMobile, RandomEncounter encounterTemplate, ArrayList cleanupList)
at Server.Misc.RandomEncounterEngine.GenerateEncounters(String timerType)
at Server.Timer.Slice()
at Server.Core.Main(String[] args)