From 8dc03eedfcf24be94f0255c0c9e055dbb83ea092 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Fri, 27 May 2022 16:26:01 +0200 Subject: less leaks and effective-c++-compatible --- src/weapon.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/weapon.hpp') diff --git a/src/weapon.hpp b/src/weapon.hpp index 5e8fde4..dcd4005 100644 --- a/src/weapon.hpp +++ b/src/weapon.hpp @@ -42,7 +42,7 @@ class AWeapon { const char* r, // reload sound path std::string const& nm, // name bool const& hasProj); // projectiles ? yea/nay - ~AWeapon(); + virtual ~AWeapon(); virtual int bang(std::vector* enemies, Entity* player) = 0; void refill(); -- cgit v1.2.3