mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 06:41:41 +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)
|
||||
- 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
|
||||
string. With strings being passed as names this is unsafe.
|
||||
- Removed unused parameter types from the function parameter parser for
|
||||
|
|
|
@ -165,7 +165,10 @@ DObject *PClass::CreateNew () const
|
|||
BYTE *mem = (BYTE *)M_Malloc (Size);
|
||||
|
||||
// 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);
|
||||
((DObject *)mem)->SetClass (const_cast<PClass *>(this));
|
||||
|
|
|
@ -1139,7 +1139,7 @@ ACTOR ZBucket 8103
|
|||
}
|
||||
}
|
||||
|
||||
ACTOR ZFireThing 8060
|
||||
ACTOR FireThing 8060
|
||||
{
|
||||
Game Hexen
|
||||
Radius 5
|
||||
|
@ -1161,7 +1161,7 @@ ACTOR ZFireThing 8060
|
|||
}
|
||||
}
|
||||
|
||||
ACTOR ZBrassTorch 8061
|
||||
ACTOR BrassTorch 8061
|
||||
{
|
||||
Game Hexen
|
||||
Radius 6
|
||||
|
|
Loading…
Reference in a new issue