From 384fb39a37e6d123f4c82fc6d09a4a7a2f35167e Mon Sep 17 00:00:00 2001 From: oakes Date: Fri, 24 Jan 2014 22:15:15 -0500 Subject: [PATCH] Remove type hint and add assertion --- src/play_clj/g2d.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/play_clj/g2d.clj b/src/play_clj/g2d.clj index a976e37..6fe6aec 100644 --- a/src/play_clj/g2d.clj +++ b/src/play_clj/g2d.clj @@ -55,7 +55,8 @@ (:object arg) (NinePatch. (:object arg)) (map? arg) - (let [{:keys [^TextureRegion region left right top bottom]} arg] + (let [{:keys [region left right top bottom]} arg] + (assert (and region left right top bottom)) (NinePatch. region left right top bottom)) :else arg)))