[fix] Fixed invalid casts.
This commit is contained in:
parent
e1eac4cf85
commit
f35bd8cef6
@ -67,8 +67,8 @@ struct ElementScheduledControllerFactory(ScheduledController, ElementDrawer)
|
|||||||
controllers ~= new ScheduledController(element, varstore_, serial);
|
controllers ~= new ScheduledController(element, varstore_, serial);
|
||||||
}
|
}
|
||||||
return ScheduledControllerCreationResult(
|
return ScheduledControllerCreationResult(
|
||||||
cast(ElementInterface[]) elements[],
|
elements[] .map!(x => cast(ElementInterface) x).array,
|
||||||
cast(ScheduledControllerInterface[]) controllers[],
|
controllers[].map!(x => cast(ScheduledControllerInterface) x).array,
|
||||||
new ElementDrawer(program_, elements[]));
|
new ElementDrawer(program_, elements[]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user