- fixed: The portal init code should only delete REJECT if there's actually some portals to consider.

This commit is contained in:
Christoph Oelckers 2016-05-27 09:45:17 +02:00
parent 19003a7973
commit b926cf35d5
1 changed files with 1 additions and 1 deletions

View File

@ -1111,7 +1111,7 @@ void P_CreateLinkedPortals()
}
// reject would just get in the way when checking sight through portals.
if (rejectmatrix != NULL)
if (Displacements.size > 1 && rejectmatrix != NULL)
{
delete[] rejectmatrix;
rejectmatrix = NULL;