From f3b19fcca21ac0f7b4b447297b609fbe12ba904c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 27 Nov 2009 21:45:17 +0000 Subject: [PATCH] - fixed an uninitialized variable in p_xlat.cpp . SVN r2004 (trunk) --- docs/rh-log.txt | 2 ++ src/p_xlat.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index ec1efb083f..21805e3096 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,6 @@ November 27, 2009 (Changes by Graf Zahl) +- fixed an uninitialized variable in p_xlat.cpp (Thanks, MSVC for not + warning about such an obvious problem! :( ) - fixed: The charge attack of Heretic's imp is not precisely the same as A_SkullAttack with a different speed so A_ImpMsAttack has been reinstated. diff --git a/src/p_xlat.cpp b/src/p_xlat.cpp index 7ec97f3e6b..9e87d13baa 100644 --- a/src/p_xlat.cpp +++ b/src/p_xlat.cpp @@ -66,7 +66,7 @@ void P_TranslateLineDef (line_t *ld, maplinedef_t *mld) unsigned short special = (unsigned short) LittleShort(mld->special); short tag = LittleShort(mld->tag); DWORD flags = LittleShort(mld->flags); - INTBOOL passthrough; + INTBOOL passthrough = 0; DWORD flags1 = flags; DWORD newflags = 0;