diff --git a/src/thingdef/thingdef_exp.cpp b/src/thingdef/thingdef_exp.cpp index 112d2959c..92e5ab686 100644 --- a/src/thingdef/thingdef_exp.cpp +++ b/src/thingdef/thingdef_exp.cpp @@ -388,16 +388,14 @@ static FxExpression *ParseExpression0 (FScanner &sc, PClassActor *cls) } sc.MustGetToken('('); - while (!(sc.CheckToken(')'))) + for (;;) { - FxExpression *min = ParseExpressionM(sc, cls); - list.Push(min); + FxExpression *expr = ParseExpressionM(sc, cls); + list.Push(expr); if (sc.CheckToken(')')) break; - else - sc.MustGetToken(','); + sc.MustGetToken(','); } - return new FxPick(rng, list, sc); } else if (sc.CheckToken(TK_FRandom))