mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-30 04:20:56 +00:00
- Fixed: PClass::CreateNew didn't check whether the class had valid
defaults and tried to copy data from a NULL pointer. - Fixed: FireThing and BrassTorch were misspelled in hexendecorations.txt SVN r104 (trunk)
This commit is contained in:
parent
159c548c5a
commit
ee12c25f47
3 changed files with 9 additions and 3 deletions
|
@ -1,4 +1,7 @@
|
||||||
May 10, 2006 (Changes by Graf Zahl)
|
May 10, 2006 (Changes by Graf Zahl)
|
||||||
|
- Fixed: PClass::CreateNew didn't check whether the class had valid
|
||||||
|
defaults and tried to copy data from a NULL pointer.
|
||||||
|
- Fixed: FireThing and BrassTorch were misspelled in hexendecorations.txt
|
||||||
- Changed A_ChangeFlag so that it doesn't need to alter the flag
|
- Changed A_ChangeFlag so that it doesn't need to alter the flag
|
||||||
string. With strings being passed as names this is unsafe.
|
string. With strings being passed as names this is unsafe.
|
||||||
- Removed unused parameter types from the function parameter parser for
|
- Removed unused parameter types from the function parameter parser for
|
||||||
|
|
|
@ -165,7 +165,10 @@ DObject *PClass::CreateNew () const
|
||||||
BYTE *mem = (BYTE *)M_Malloc (Size);
|
BYTE *mem = (BYTE *)M_Malloc (Size);
|
||||||
|
|
||||||
// Set this object's defaults before constructing it.
|
// Set this object's defaults before constructing it.
|
||||||
memcpy (mem, Defaults, Size);
|
if (Defaults!=NULL)
|
||||||
|
memcpy (mem, Defaults, Size);
|
||||||
|
else
|
||||||
|
memset (mem, 0, Size);
|
||||||
|
|
||||||
ConstructNative (mem);
|
ConstructNative (mem);
|
||||||
((DObject *)mem)->SetClass (const_cast<PClass *>(this));
|
((DObject *)mem)->SetClass (const_cast<PClass *>(this));
|
||||||
|
|
|
@ -1139,7 +1139,7 @@ ACTOR ZBucket 8103
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ACTOR ZFireThing 8060
|
ACTOR FireThing 8060
|
||||||
{
|
{
|
||||||
Game Hexen
|
Game Hexen
|
||||||
Radius 5
|
Radius 5
|
||||||
|
@ -1161,7 +1161,7 @@ ACTOR ZFireThing 8060
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ACTOR ZBrassTorch 8061
|
ACTOR BrassTorch 8061
|
||||||
{
|
{
|
||||||
Game Hexen
|
Game Hexen
|
||||||
Radius 6
|
Radius 6
|
||||||
|
|
Loading…
Reference in a new issue