From b1989b4d3460025acf52382a10d899e41827245a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 18 Jul 2006 23:09:11 +0000 Subject: [PATCH] - Fixed: PClass::CreateDerivedClass forgot to NULL FActorInfo::Replacee. SVN r266 (trunk) --- docs/rh-log.txt | 3 +++ src/dobjtype.cpp | 1 + src/s_advsound.cpp | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 0a67b2834..6cea46022 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,6 @@ +July 17, 2006 (Changes by Graf Zahl) +- Fixed: PClass::CreateDerivedClass forgot to NULL FActorInfo::Replacee. + July 16, 2006 (Changes by Graf Zahl) - Fixed: S_ClearSoundData cleared PlayerClasses instead of PlayerClassLookups. - Added NecroMage's submission for bitwise/shift assignment operators for ACS. diff --git a/src/dobjtype.cpp b/src/dobjtype.cpp index dfc05963a..a924c3ff2 100644 --- a/src/dobjtype.cpp +++ b/src/dobjtype.cpp @@ -211,6 +211,7 @@ PClass *PClass::CreateDerivedClass (FName name, unsigned int size) info->OwnedStates = NULL; info->NumOwnedStates = 0; info->Replacement = NULL; + info->Replacee = NULL; m_RuntimeActors.Push (type); } return type; diff --git a/src/s_advsound.cpp b/src/s_advsound.cpp index b4f5bf59f..8000f43fb 100644 --- a/src/s_advsound.cpp +++ b/src/s_advsound.cpp @@ -494,7 +494,7 @@ static int S_AddSound (const char *logicalname, int lumpnum) int S_AddPlayerSound (const char *pclass, int gender, int refid, const char *lumpname) { - int lump; + int lump=-1; if (lumpname) {