2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:47:42 +00:00

CPlayerState: Rename HealthInfo() to GetHealthInfo()

Allows const overloading to function and prevents compilation errors
from occurring if constness changes through future changes of any sort.
This commit is contained in:
Lioncash
2020-03-24 06:20:33 -04:00
parent fc87bd8022
commit ef93a601eb
3 changed files with 3 additions and 3 deletions

View File

@@ -182,7 +182,7 @@ u32 CPlayerState::CalculateItemCollectionRate() const {
return total + GetItemCapacity(EItemType::Wavebuster);
}
CHealthInfo& CPlayerState::HealthInfo() { return xc_health; }
CHealthInfo& CPlayerState::GetHealthInfo() { return xc_health; }
const CHealthInfo& CPlayerState::GetHealthInfo() const { return xc_health; }