mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user