@@ -1333,11 +1333,11 @@ void DogfightState::btnCautiousClick(Action *)
13331333 {
13341334 _end = false ;
13351335 setStatus (" STR_CAUTIOUS_ATTACK" );
1336- if (_craft->getNumWeapons () > 0 && _craft->getWeapons ()->at (0 ) != 0 )
1336+ if (_craft->getRules ()-> getWeapons () > 0 && _craft->getWeapons ()->at (0 ) != 0 )
13371337 {
13381338 _w1Timer->setInterval (_craft->getWeapons ()->at (0 )->getRules ()->getCautiousReload () * _timeScale);
13391339 }
1340- if (_craft->getNumWeapons () > 1 && _craft->getWeapons ()->at (1 ) != 0 )
1340+ if (_craft->getRules ()-> getWeapons () > 1 && _craft->getWeapons ()->at (1 ) != 0 )
13411341 {
13421342 _w2Timer->setInterval (_craft->getWeapons ()->at (1 )->getRules ()->getCautiousReload () * _timeScale);
13431343 }
@@ -1356,11 +1356,11 @@ void DogfightState::btnStandardClick(Action *)
13561356 {
13571357 _end = false ;
13581358 setStatus (" STR_STANDARD_ATTACK" );
1359- if (_craft->getNumWeapons () > 0 && _craft->getWeapons ()->at (0 ) != 0 )
1359+ if (_craft->getRules ()-> getWeapons () > 0 && _craft->getWeapons ()->at (0 ) != 0 )
13601360 {
13611361 _w1Timer->setInterval (_craft->getWeapons ()->at (0 )->getRules ()->getStandardReload () * _timeScale);
13621362 }
1363- if (_craft->getNumWeapons () > 1 && _craft->getWeapons ()->at (1 ) != 0 )
1363+ if (_craft->getRules ()-> getWeapons () > 1 && _craft->getWeapons ()->at (1 ) != 0 )
13641364 {
13651365 _w2Timer->setInterval (_craft->getWeapons ()->at (1 )->getRules ()->getStandardReload () * _timeScale);
13661366 }
@@ -1379,11 +1379,11 @@ void DogfightState::btnAggressiveClick(Action *)
13791379 {
13801380 _end = false ;
13811381 setStatus (" STR_AGGRESSIVE_ATTACK" );
1382- if (_craft->getNumWeapons () > 0 && _craft->getWeapons ()->at (0 ) != 0 )
1382+ if (_craft->getRules ()-> getWeapons () > 0 && _craft->getWeapons ()->at (0 ) != 0 )
13831383 {
13841384 _w1Timer->setInterval (_craft->getWeapons ()->at (0 )->getRules ()->getAggressiveReload () * _timeScale);
13851385 }
1386- if (_craft->getNumWeapons () > 1 && _craft->getWeapons ()->at (1 ) != 0 )
1386+ if (_craft->getRules ()-> getWeapons () > 1 && _craft->getWeapons ()->at (1 ) != 0 )
13871387 {
13881388 _w2Timer->setInterval (_craft->getWeapons ()->at (1 )->getRules ()->getAggressiveReload () * _timeScale);
13891389 }
0 commit comments