From 0025c8c96aae00d4a9d2d903bec665c2ede339a7 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 4 Sep 2016 04:30:30 +0000 Subject: [PATCH] I need to quit trying to be clever git-svn-id: https://svn.eduke32.com/eduke32@5846 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/player.c b/polymer/eduke32/source/player.c index 3f6cd64c4..e958fc4ee 100644 --- a/polymer/eduke32/source/player.c +++ b/polymer/eduke32/source/player.c @@ -4273,7 +4273,7 @@ void P_EndLevel(void) } else { - ud.level_number = (++ud.level_number >= MAXLEVELS) ? ud.level_number : 0; + ud.level_number = (++ud.level_number < MAXLEVELS) ? ud.level_number : 0; ud.m_level_number = ud.level_number; } }