- fixed a few warnings pointed out by GCC.
This commit is contained in:
parent
72d7a70732
commit
cffe67dcee
5 changed files with 19 additions and 9 deletions
|
|
@ -166,7 +166,7 @@ void MapLoader::SpawnLinePortal(line_t* line)
|
|||
line->portalindex = Level->linePortals.Reserve(1);
|
||||
FLinePortal *port = &Level->linePortals.Last();
|
||||
|
||||
memset(port, 0, sizeof(FLinePortal));
|
||||
port->Clear();
|
||||
port->mOrigin = line;
|
||||
port->mDestination = &ln;
|
||||
port->mType = PORTT_LINKED;
|
||||
|
|
@ -177,7 +177,7 @@ void MapLoader::SpawnLinePortal(line_t* line)
|
|||
ln.portalindex = Level->linePortals.Reserve(1);
|
||||
port = &Level->linePortals.Last();
|
||||
|
||||
memset(port, 0, sizeof(FLinePortal));
|
||||
port->Clear();
|
||||
port->mOrigin = &ln;
|
||||
port->mDestination = line;
|
||||
port->mType = PORTT_LINKED;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue