- two more places where explicit allocations could be replaced.
This commit is contained in:
parent
091f73b833
commit
39f6489ac5
2 changed files with 5 additions and 10 deletions
|
|
@ -429,12 +429,8 @@ void player_t::SetLogNumber (int num)
|
|||
}
|
||||
else
|
||||
{
|
||||
int length=Wads.LumpLength(lumpnum);
|
||||
char *data= new char[length+1];
|
||||
Wads.ReadLump (lumpnum, data);
|
||||
data[length]=0;
|
||||
SetLogText (data);
|
||||
delete[] data;
|
||||
auto lump = Wads.ReadLump(lumpnum);
|
||||
SetLogText (lump.GetString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue