mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 08:14:29 +02:00
Fixed crash when using last item in inventory
This commit is contained in:
parent
2e0110ae40
commit
a13b0c50ae
@ -1000,9 +1000,18 @@ Public Class NewInventoryScreen
|
|||||||
cItem.Use()
|
cItem.Use()
|
||||||
LoadItems()
|
LoadItems()
|
||||||
If Me.PreScreen.Identification = Screen.Identifications.BattleScreen Then
|
If Me.PreScreen.Identification = Screen.Identifications.BattleScreen Then
|
||||||
Core.Player.UsedItemsToCheckScriptDelayFor.Add(_items(ItemIndex + PageIndex * 10).ItemID)
|
If cItem.IsGameModeItem = True Then
|
||||||
|
Core.Player.UsedItemsToCheckScriptDelayFor.Add(cItem.gmID)
|
||||||
|
Else
|
||||||
|
Core.Player.UsedItemsToCheckScriptDelayFor.Add(cItem.ID.ToString)
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
Core.Player.CheckItemCountScriptDelay(_items(ItemIndex + PageIndex * 10).ItemID)
|
If cItem.IsGameModeItem = True Then
|
||||||
|
Core.Player.CheckItemCountScriptDelay(cItem.gmID)
|
||||||
|
Else
|
||||||
|
Core.Player.CheckItemCountScriptDelay(cItem.ID.ToString)
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Case INFO_ITEM_OPTION_GIVE
|
Case INFO_ITEM_OPTION_GIVE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user