Fixed m_fpsTiki being uninitialized when archiving

This commit is contained in:
smallmodel 2023-11-26 20:36:23 +01:00
parent cca37e3dfe
commit 5418d84c7e
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 7 additions and 0 deletions

View file

@ -2480,6 +2480,11 @@ void Player::InitModel(void)
}
}
InitModelFps();
}
void Player::InitModelFps(void)
{
char model_name[MAX_STRING_TOKENS];
char *model_replace;

View file

@ -514,6 +514,7 @@ public:
void InitWeapons(void);
void InitView(void);
void InitModel(void);
void InitModelFps(void); // Added in openmohaa
void InitState(void);
void InitHealth(void);
void InitInventory(void);
@ -1157,6 +1158,7 @@ inline void Player::Archive(Archiver& arc)
if (arc.Loading()) {
UpdateWeapons();
InitModelFps();
}
}