frm: fix crashing with ageage again hair

This commit is contained in:
somewhatlurker
2020-02-22 19:36:46 +11:00
parent aa47b34823
commit b40d6fae72
2 changed files with 30 additions and 9 deletions
@@ -16,6 +16,11 @@ namespace TLAC::Components
virtual void Update() override;
virtual void UpdateDraw2D() override;
static float fspeed_error; // compensation value for use in this frame
static float fspeed_error_next; // save a compensation value to be used in the next frame
static float fspeedhook_lastresult; // used by the ageage hair patch to be lazy and avoid setting up for a proper call
private:
float *pvFrameRate;
float *frameSpeed;