mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-23 22:05:36 +02:00
Fix missing null exception checks for roaming pokes.
This commit is contained in:
parent
8b938cbf90
commit
8f1843a042
@ -251,8 +251,11 @@
|
||||
|
||||
If TempPoke.Count > 0 And RoamingPokeName.Count > 0 Then
|
||||
For Each Pokes As String In RoamingPokeName
|
||||
Dim MapObject As Roaming = (From p As Roaming In TempPoke Where p.Name = Pokes Order By p.Distance Ascending).ElementAt(TempPoke(0).getSkipIndex)
|
||||
RoamingPoke.Add(MapObject)
|
||||
Dim MapObject As List(Of Roaming) = (From p As Roaming In TempPoke Where p.Name = Pokes Order By p.Distance Ascending).ToList()
|
||||
|
||||
If MapObject IsNot Nothing AndAlso Not MapObject.Count = 0 Then
|
||||
RoamingPoke.Add(MapObject.ElementAt(MapObject(0).getSkipIndex))
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
End Sub
|
||||
|
Loading…
x
Reference in New Issue
Block a user