CRippleManager: Rename Ripples() to GetRipples()

Allows const overloading to work and prevents compilation errors from
occurring if the constness ever changes.
This commit is contained in:
Lioncash 2020-03-25 04:22:32 -04:00
parent 4f9e53933e
commit c5c888daa6
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class CRippleManager {
public:
CRippleManager(int maxRipples, float alpha);
void Init(int maxRipples);
std::vector<CRipple>& Ripples() { return x4_ripples; }
std::vector<CRipple>& GetRipples() { return x4_ripples; }
const std::vector<CRipple>& GetRipples() const { return x4_ripples; }
void Update(float dt);
float GetLastRippleDeltaTime(TUniqueId rippler) const;