diff --git a/src/p_pspr.cpp b/src/p_pspr.cpp index 3ef74da73c..238412bb6d 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), diff --git a/wadsrc/static/zscript/strife/strifefunctions.txt b/wadsrc/static/zscript/strife/strifefunctions.txt index 3a0dec22f4..ed6c3854ef 100644 --- a/wadsrc/static/zscript/strife/strifefunctions.txt +++ b/wadsrc/static/zscript/strife/strifefunctions.txt @@ -164,7 +164,7 @@ extend class Actor { target = self; } - else if (target != null && (self.target.player != null || (Flags & AMF_TARGETNONPLAYER))) + else if (self.target != null && (self.target.player != null || (Flags & AMF_TARGETNONPLAYER))) { target = self.target; }