Permalink
Browse files

- fixed crash with Line_SetPortal special

  • Loading branch information...
alexey-lysiuk committed Jan 9, 2019
1 parent a173021 commit 32cf79c519908f5b9adf75a37bc00d7d34e607ba
Showing with 3 additions and 4 deletions.
  1. +1 −1 src/p_lnspec.cpp
  2. +1 −2 src/portal.cpp
  3. +1 −1 src/portal.h
@@ -3402,7 +3402,7 @@ FUNC(LS_Thing_SetConversation)
FUNC(LS_Line_SetPortalTarget)
// Line_SetPortalTarget(thisid, destid)
{
return P_ChangePortal(ln, arg0, arg1);
return P_ChangePortal(Level, ln, arg0, arg1);
}

FUNC(LS_Sector_SetPlaneReflection)
@@ -485,11 +485,10 @@ static bool ChangePortalLine(line_t *line, int destid)
//
//============================================================================

bool P_ChangePortal(line_t *ln, int thisid, int destid)
bool P_ChangePortal(FLevelLocals *Level, line_t *ln, int thisid, int destid)
{
int lineno;

auto Level = ln->GetLevel();
if (thisid == 0) return ChangePortalLine(ln, destid);
FLineIdIterator it(Level->tagManager, thisid);
bool res = false;
@@ -265,7 +265,7 @@ struct FSectorPortalGroup

void P_SpawnLinePortal(line_t* line);
void P_FinalizePortals(FLevelLocals *Level);
bool P_ChangePortal(line_t *ln, int thisid, int destid);
bool P_ChangePortal(FLevelLocals *Level, line_t *ln, int thisid, int destid);
void P_CreateLinkedPortals(FLevelLocals *Level);
bool P_CollectConnectedGroups(FLevelLocals *Level, int startgroup, const DVector3 &position, double upperz, double checkradius, FPortalGroupArray &out);
void P_CollectLinkedPortals(FLevelLocals *Level);

0 comments on commit 32cf79c

Please sign in to comment.