Fixed wrong item when swapping from pokémon

This commit is contained in:
JappaWakka 2023-06-04 14:05:41 +02:00
parent 63b2134ef6
commit 65ca21139b
1 changed files with 3 additions and 3 deletions

View File

@ -1025,10 +1025,10 @@ Public Class NewInventoryScreen
Dim reItem As Item = Nothing
If Not Pokemon.Item Is Nothing Then
Dim ReItemID As String
If cItem.IsGameModeItem = True Then
ReItemID = cItem.gmID
If Pokemon.Item.IsGameModeItem = True Then
ReItemID = Pokemon.Item.gmID
Else
ReItemID = cItem.ID.ToString
ReItemID = Pokemon.Item.ID.ToString
End If
reItem = Pokemon.Item
Core.Player.Inventory.AddItem(ReItemID, 1)