From c6a2bb774027019a33ae97cb8ea0f46e76aaf861 Mon Sep 17 00:00:00 2001 From: Igor Kravchenko Date: Wed, 30 Sep 2020 17:37:53 +0300 Subject: [PATCH] adds missing registration of provider in StateComponentMapping init --- Sources/FirebladeECS/FSM.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/FirebladeECS/FSM.swift b/Sources/FirebladeECS/FSM.swift index 72c3c35..d99ac8d 100644 --- a/Sources/FirebladeECS/FSM.swift +++ b/Sources/FirebladeECS/FSM.swift @@ -210,6 +210,7 @@ public class StateComponentMapping { self.creatingState = creatingState componentType = type provider = ComponentTypeProvider(type: type) + creatingState.providers[componentType.identifier] = provider } /// Creates a mapping for the component type to a specific component instance. A