mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 16:24:45 +02:00
Fixed crash related to having no items in NewInventoryScreen
This commit is contained in:
parent
327d7ad292
commit
d23b213b5d
@ -596,7 +596,7 @@ Public Class NewInventoryScreen
|
|||||||
If Controls.Dismiss() And CanExit Then
|
If Controls.Dismiss() And CanExit Then
|
||||||
_closing = True
|
_closing = True
|
||||||
End If
|
End If
|
||||||
If Controls.Accept() Then
|
If Controls.Accept() And _items.Length > 0 Then
|
||||||
_tabInControl = False
|
_tabInControl = False
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@ -652,7 +652,7 @@ Public Class NewInventoryScreen
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Controls.Accept() Then
|
If Controls.Accept() AndAlso _items.Length > 0 Then
|
||||||
_infoItemOptionSelection = 0
|
_infoItemOptionSelection = 0
|
||||||
_isInfoShowing = True
|
_isInfoShowing = True
|
||||||
SetInfoSettings()
|
SetInfoSettings()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user