mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
- Do a memset()
in PlayerAngles::initialize()
instead of value initialisation.
This commit is contained in:
parent
092d8e7937
commit
88939a9c60
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue