From f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Fri, 14 Jan 2022 14:12:14 +0100 Subject: strange behavior... I WILL find out whats going on ! --- src/weapon.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/weapon.cpp') diff --git a/src/weapon.cpp b/src/weapon.cpp index 6f52217..a8553e3 100644 --- a/src/weapon.cpp +++ b/src/weapon.cpp @@ -15,8 +15,9 @@ AWeapon::AWeapon(float const rg, unsigned int const& mag, double const& cd, const char* s, - const char* r) - : range(rg), damage(dmg), max(mag), cooldown(cd) { + const char* r, + std::string const & nm) + : range(rg), damage(dmg), max(mag), cooldown(cd), name(nm) { shot = LoadSound(s); reload = LoadSound(r); SetSoundVolume(shot, 0.3f); -- cgit v1.2.3