mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
fix: Fixed multiple errors in scenic AAA modes
This commit is contained in:
@@ -41,6 +41,8 @@ void WeaponsManager::update(json::value& json, double dt)
|
||||
weapons[ID] = dynamic_cast<Weapon*>(new Missile(p.second, ID));
|
||||
else if (category.compare("Bomb") == 0)
|
||||
weapons[ID] = dynamic_cast<Weapon*>(new Bomb(p.second, ID));
|
||||
else if (category.compare("Shell") == 0)
|
||||
weapons[ID] = dynamic_cast<Weapon*>(new Shell(p.second, ID));
|
||||
|
||||
/* Initialize the weapon if creation was successfull */
|
||||
if (weapons.count(ID) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user