diff options
Diffstat (limited to 'src/weapon.cpp')
-rw-r--r-- | src/weapon.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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); |