summaryrefslogtreecommitdiff
path: root/src/heretic
diff options
context:
space:
mode:
Diffstat (limited to 'src/heretic')
-rw-r--r--src/heretic/p_spec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/heretic/p_spec.c b/src/heretic/p_spec.c
index 274d725b..ee454c05 100644
--- a/src/heretic/p_spec.c
+++ b/src/heretic/p_spec.c
@@ -422,7 +422,7 @@ fixed_t P_FindNextHighestFloor(sector_t * sec, int currentheight)
if (other != NULL && other->floorheight > height)
{
- if (min < other->floorheight)
+ if (other->floorheight < min)
{
min = other->floorheight;
}