randomChump changed to stack

This commit is contained in:
2025-09-29 07:04:57 +02:00
parent 661e81b552
commit 5c22e9e735

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/09/05 17:04:38 by aortigos #+# #+# */
/* Updated: 2025/09/14 13:48:12 by aortigos ### ########.fr */
/* Updated: 2025/09/29 07:03:22 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,10 +14,7 @@
void randomChump( std::string name )
{
Zombie *z;
Zombie z(name);
z = new Zombie(name);
z->announce();
delete (z);
z.announce();
}