Fix (by Ocular): Reusing the pInventoryPoolList vector lead to incorrect flags on items that were placed in slots that previously had an action item in them. This fix resets the flags for these slots to 0 when the list is updated.

http://www.ja-galaxy-forum.com/ubbthreads.php/topics/336486/[PATCH]_Fix_invalid_slots_in_m#Post336486


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7552 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
silversurfer
2014-10-12 11:35:53 +00:00
parent 64f85b6c9b
commit 5f80ad78d7
@@ -2193,6 +2193,7 @@ void BuildStashForSelectedSector( INT16 sMapX, INT16 sMapY, INT16 sMapZ )
uiNumberOfUnSeenItems++;
}
pipl->fExists = FALSE;
pipl->usFlags = 0;
pipl->object.usItem = NONE;
pipl->object.ubNumberOfObjects = 0;
}
@@ -2204,6 +2205,7 @@ void BuildStashForSelectedSector( INT16 sMapX, INT16 sMapY, INT16 sMapZ )
for(i=uiNumberOfSeenItems; i<uiNumOfSlots; i++, pipl++)
{
pipl->fExists = FALSE;
pipl->usFlags = 0;
pipl->object.usItem = NONE;
pipl->object.ubNumberOfObjects = 0;
}