mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-08 19:48:08 +03:00
Fixed crash with healrate
This commit is contained in:
parent
467802c466
commit
7e113359b3
1 changed files with 1 additions and 1 deletions
|
@ -7073,7 +7073,7 @@ void Player::UpdateStats(void)
|
||||||
// Healing
|
// Healing
|
||||||
//
|
//
|
||||||
if (m_fHealRate && (!m_pVehicle || m_pTurret || m_pVehicle->isSubclassOf(FixedTurret))) {
|
if (m_fHealRate && (!m_pVehicle || m_pTurret || m_pVehicle->isSubclassOf(FixedTurret))) {
|
||||||
healfrac = (m_pVehicle->health + m_fHealRate) / m_pVehicle->max_health * 100.f;
|
healfrac = (health + m_fHealRate) / max_health * 100.f;
|
||||||
} else {
|
} else {
|
||||||
healfrac = 0;
|
healfrac = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue