From e2d64a1c4a184eadfaff558d391d3a416df1a351 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 3 Jan 2020 11:47:10 +0100 Subject: [PATCH] - copied anim fix to RR. --- source/rr/src/anim.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/rr/src/anim.h b/source/rr/src/anim.h index 595dc0e0f..0bde36c2f 100644 --- a/source/rr/src/anim.h +++ b/source/rr/src/anim.h @@ -26,18 +26,18 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. BEGIN_RR_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, frameaspect2 = 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;