diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-12-11 12:11:50 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-12-11 12:11:50 +0100 |
| commit | c10aa969c60cedef893146307fa319250901465a (patch) | |
| tree | e3dfa785191047ee8e2ed533f963fe7c5cd7aacf /cpp04/ex03/Character.cpp | |
| parent | 6169d697a5be59426d034b878bffc848de49491d (diff) | |
| download | piscine_cpp-c10aa969c60cedef893146307fa319250901465a.tar.gz piscine_cpp-c10aa969c60cedef893146307fa319250901465a.tar.bz2 piscine_cpp-c10aa969c60cedef893146307fa319250901465a.zip | |
Fixing cpp04 according to correction
Diffstat (limited to 'cpp04/ex03/Character.cpp')
| -rw-r--r-- | cpp04/ex03/Character.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp04/ex03/Character.cpp b/cpp04/ex03/Character.cpp index 57fcfeb..42e07da 100644 --- a/cpp04/ex03/Character.cpp +++ b/cpp04/ex03/Character.cpp @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 16:45:54 by charles #+# #+# */ -/* Updated: 2020/11/17 08:30:21 by cacharle ### ########.fr */ +/* Updated: 2020/12/11 12:08:56 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -44,7 +44,6 @@ void Character::unequip(int idx) { if (idx < 0 || idx >= m_inventory_size) return; - delete m_inventory[idx]; for (int i = idx; i < m_inventory_size - 1; i++) m_inventory[i] = m_inventory[i + 1]; m_inventory_size--; |
