diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/inventory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/inventory.cpp b/engines/parallaction/inventory.cpp index 5a1baa6ace..21c1da1a70 100644 --- a/engines/parallaction/inventory.cpp +++ b/engines/parallaction/inventory.cpp @@ -302,7 +302,7 @@ void Inventory::removeItem(ItemName name) { _numItems--; if (_numItems != pos) { - memcpy(&_items[pos], &_items[pos+1], (_numItems - pos) * sizeof(InventoryItem)); + memmove(&_items[pos], &_items[pos+1], (_numItems - pos) * sizeof(InventoryItem)); } _items[_numItems]._id = 0; |