diff --git a/source/duke3d/src/anim.h b/source/duke3d/src/anim.h index a921bd84c..50f6b6bc2 100644 --- a/source/duke3d/src/anim.h +++ b/source/duke3d/src/anim.h @@ -31,18 +31,18 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. BEGIN_DUKE_NS typedef struct { - uint16_t frame; - int16_t sound; + uint16_t frame = 0; + int16_t sound = 0; } animsound_t; typedef struct { FString name; - double frameaspect1, frameaspect2; - uint8_t* animbuf; + double frameaspect1 = 0.0, frameaspect2 = 0.0; + uint8_t* animbuf = nullptr; TArray Sounds; - uint8_t framedelay; - uint8_t frameflags; + uint8_t framedelay = 0; + uint8_t frameflags = 0; } dukeanim_t; extern dukeanim_t* g_animPtr;