Skip to content

Commit

Permalink
Fix possible crash when checking for 2-sided wall
Browse files Browse the repository at this point in the history
Last instance where I forgot to change -1 to NO_INDEX after implementing
commit 6883bd3.
  • Loading branch information
bradharding committed May 5, 2014
1 parent 2019e9e commit a99729f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/p_spec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

//
Expand Down

0 comments on commit a99729f

Please sign in to comment.