From 54fb8e286263b5cd8148d9fbb0374e8158bd9eae Mon Sep 17 00:00:00 2001 From: Shadooow Date: Fri, 4 Jun 2021 23:07:44 +0000 Subject: [PATCH] fix for duplicated items in inventory when replacing dead IMP git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9060 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Laptop/IMP Confirm.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Laptop/IMP Confirm.cpp b/Laptop/IMP Confirm.cpp index 40340279..396646ff 100644 --- a/Laptop/IMP Confirm.cpp +++ b/Laptop/IMP Confirm.cpp @@ -604,6 +604,9 @@ void GiveItemsToPC( UINT8 ubProfileId ) pProfile = &(gMercProfiles[ubProfileId]); + //shadooow: fixes mess in inventory when replacing dead/pow IMP + pProfile->clearInventory(); + // Flugente: if necessary, give us the gear we selected if ( IsIMPGearUsed() ) {