What's going on here?
Code:
instantiated from `void std::deque<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = C_Projectile, _Alloc = std::allocator<C_Projectile>]'
Code:
error: no matching function for call to `C_Projectile::C_Projectile(const C_Projectile&)'
when did I ever call this?
Code:
projectile.h:9: note: candidates are: C_Projectile::C_Projectile(C_Projectile&)
projectile.h:12: note: C_Projectile::C_Projectile(C_Vector&, int)
projectile.h:11: note: C_Projectile::C_Projectile()
and the code:
Code:
C_Projectile p(TurretDirection, g_WeaponManager.WeaponInfo[this->CurrentWeapon].UsableProjectiles[0]);
Projectiles.push_back(p);
was previously
Projectiles.push_back(C_Projectile(TurretDirection , g_WeaponManager.WeaponInfo[this->CurrentWeapon].UsableProjectiles[0]));
but i split it up to find out which line was causing the error
C_Projectile is a class