From a99729f263f21d46ee29a02fc4f7c098e7b6964c Mon Sep 17 00:00:00 2001 From: Brad Harding Date: Mon, 5 May 2014 21:47:11 +1000 Subject: [PATCH] Fix possible crash when checking for 2-sided wall Last instance where I forgot to change -1 to NO_INDEX after implementing commit 6883bd33a6e02189c43cdcb3f37a6d19666f57df. --- src/p_spec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_spec.c b/src/p_spec.c index eb55329452..52c615c1a3 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -257,7 +257,7 @@ int twoSided(int sector, int line) // jff 1/26/98 return what is actually needed, whether the line // has two sidedefs, rather than whether the 2S flag is set - return (sectors[sector].lines[line]->sidenum[1] != -1); + return (sectors[sector].lines[line]->sidenum[1] != NO_INDEX); } //