Picked the correct pointers for correctness' sake
This commit is contained in:
parent
e02b33ee11
commit
ea345f90f5
1 changed files with 4 additions and 4 deletions
|
@ -792,8 +792,8 @@ bool8 AddPyramidBagItem(u16 itemId, u16 count)
|
|||
|
||||
if (count == 0)
|
||||
{
|
||||
memcpy(items, newItems, PYRAMID_BAG_ITEMS_COUNT * sizeof(*newItems));
|
||||
memcpy(quantities, newQuantities, PYRAMID_BAG_ITEMS_COUNT * sizeof(*newQuantities));
|
||||
memcpy(items, newItems, PYRAMID_BAG_ITEMS_COUNT * sizeof(*items));
|
||||
memcpy(quantities, newQuantities, PYRAMID_BAG_ITEMS_COUNT * sizeof(*quantities));
|
||||
Free(newItems);
|
||||
Free(newQuantities);
|
||||
return TRUE;
|
||||
|
@ -854,8 +854,8 @@ bool8 RemovePyramidBagItem(u16 itemId, u16 count)
|
|||
|
||||
if (count == 0)
|
||||
{
|
||||
memcpy(items, newItems, PYRAMID_BAG_ITEMS_COUNT * sizeof(*newItems));
|
||||
memcpy(quantities, newQuantities, PYRAMID_BAG_ITEMS_COUNT * sizeof(*newQuantities));
|
||||
memcpy(items, newItems, PYRAMID_BAG_ITEMS_COUNT * sizeof(*items));
|
||||
memcpy(quantities, newQuantities, PYRAMID_BAG_ITEMS_COUNT * sizeof(*quantities));
|
||||
Free(newItems);
|
||||
Free(newQuantities);
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue