diff --git a/source/core/gameinput.h b/source/core/gameinput.h index 3e314b8ce..1db6e9025 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -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;