From f35bd8cef6e489037128c97ec815e8fa4c9fce3e Mon Sep 17 00:00:00 2001 From: falsycat Date: Sun, 6 Oct 2019 00:00:00 +0000 Subject: [PATCH] [fix] Fixed invalid casts. --- sjplayer/src/sjplayer/ScheduledControllerFactory.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sjplayer/src/sjplayer/ScheduledControllerFactory.d b/sjplayer/src/sjplayer/ScheduledControllerFactory.d index 5ed26bd..dc47395 100644 --- a/sjplayer/src/sjplayer/ScheduledControllerFactory.d +++ b/sjplayer/src/sjplayer/ScheduledControllerFactory.d @@ -67,8 +67,8 @@ struct ElementScheduledControllerFactory(ScheduledController, ElementDrawer) controllers ~= new ScheduledController(element, varstore_, serial); } return ScheduledControllerCreationResult( - cast(ElementInterface[]) elements[], - cast(ScheduledControllerInterface[]) controllers[], + elements[] .map!(x => cast(ElementInterface) x).array, + controllers[].map!(x => cast(ScheduledControllerInterface) x).array, new ElementDrawer(program_, elements[])); }