From 56a42a26b2dc85abd4d957604171516819bbbef8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 12 Dec 2016 12:32:48 +0100 Subject: [PATCH] - fixed: DPSprite's constructor did not initialize the 'Sprite' member variable. This can cause problems if some weapon starts with a placeholder sprite in the first state. --- src/p_pspr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/p_pspr.cpp b/src/p_pspr.cpp index 3ef74da73..238412bb6 100644 --- a/src/p_pspr.cpp +++ b/src/p_pspr.cpp @@ -136,6 +136,7 @@ DPSprite::DPSprite(player_t *owner, AActor *caller, int id) : x(.0), y(.0), oldx(.0), oldy(.0), firstTic(true), + Sprite(0), Flags(0), Caller(caller), Owner(owner),