mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
Picked the correct pointers for correctness' sake
This commit is contained in:
parent
e02b33ee11
commit
ea345f90f5
@ -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 New Issue
Block a user