- Fixed: Skin definitions were never freed.
- Fixed: Names in terrain definitions were never freed. Replacing them with FNames would have been a good idea anyway. - Fixed: The lock definitions were never freed. - Fixed: FDoorAnimation was missing a destructor. - Fixed: animation and switch definitions were never freed. - Replaced all other places where FindType was used with FNames with IFindType. SVN r90 (trunk)
This commit is contained in:
parent
ace3ed1188
commit
763efb3682
11 changed files with 108 additions and 32 deletions
|
|
@ -114,7 +114,19 @@ static WORD AddSwitchDef (FSwitchDef *def);
|
|||
// CHANGE THE TEXTURE OF A WALL SWITCH TO ITS OPPOSITE
|
||||
//
|
||||
|
||||
static TArray<FSwitchDef *> SwitchList;
|
||||
class DeletingSwitchArray : public TArray<FSwitchDef *>
|
||||
{
|
||||
public:
|
||||
~DeletingSwitchArray()
|
||||
{
|
||||
for(unsigned i=0;i<Size();i++)
|
||||
{
|
||||
if ((*this)[i] != NULL) free((*this)[i]);
|
||||
(*this)[i]=NULL;
|
||||
}
|
||||
}
|
||||
};
|
||||
static DeletingSwitchArray SwitchList;
|
||||
|
||||
//
|
||||
// P_InitSwitchList
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue