Fixed crash related to having no items in NewInventoryScreen

This commit is contained in:
CaptainSegis 2017-03-24 12:41:58 -05:00
parent 327d7ad292
commit d23b213b5d
1 changed files with 2 additions and 2 deletions

View File

@ -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()