- Do a memset() in PlayerAngles::initialize() instead of value initialisation.

This commit is contained in:
Mitchell Richters 2023-09-29 08:31:48 +10:00
parent 092d8e7937
commit 88939a9c60

View file

@ -112,7 +112,7 @@ struct PlayerAngles
// General methods.
void initialize(DCoreActor* const actor, const DAngle viewyaw = nullAngle)
{
*this = {};
memset(this, 0, sizeof(*this));
pActor = actor;
CameraAngles = PrevLerpAngles = pActor->spr.Angles;
PrevViewAngles.Yaw = ViewAngles.Yaw = viewyaw;