mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Call the switch label only is the primary turret is valid
This commit is contained in:
parent
f0cc34cccf
commit
f3f53947bc
1 changed files with 5 additions and 1 deletions
|
@ -2130,7 +2130,11 @@ void VehicleTurretGunTandem::SwitchToLinkedTurret()
|
|||
} else {
|
||||
pTurret = m_PrimaryTurret;
|
||||
// Added in 2.30
|
||||
m_PrimaryTurret->m_SwitchLabel.Execute(this, pTurret, NULL);
|
||||
if (m_PrimaryTurret) {
|
||||
// Fixed in OPM
|
||||
// Check for primary turret before setting the switch label
|
||||
m_PrimaryTurret->m_SwitchLabel.Execute(this, pTurret, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
SetActiveTurret(pTurret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue