diff --git a/modules/clipper2/clipper2.moon b/modules/clipper2/clipper2.moon index b206cd3..20d85fe 100644 --- a/modules/clipper2/clipper2.moon +++ b/modules/clipper2/clipper2.moon @@ -75,7 +75,8 @@ Enums = { SetEnum = (enumName, n) -> if type(n) == "string" - assert Enums[enumName][n], "#{enumName} undefined" + n = Enums[enumName][n] + assert n, "#{enumName} undefined" return n -- lib