-fixed mmcomando commit bug

This commit is contained in:
Mergul 2019-04-06 15:02:07 +00:00
parent be5de2ae9c
commit e7d3d08feb

View file

@ -289,7 +289,7 @@ class EntityManager
dataSystem.handleEvent(input, *cast(Type*)data.event); dataSystem.handleEvent(input, *cast(Type*)data.event);
} }
static void setEventCallers(Sys)(System system){ static void setEventCallers(Sys)(ref System system){
enum allEventHandlers=__traits(getOverloads, Sys, "handleEvent").length; enum allEventHandlers=__traits(getOverloads, Sys, "handleEvent").length;
system.m_event_callers = Mallocator.instance.makeArray!(System.EventCaller)(allEventHandlers); system.m_event_callers = Mallocator.instance.makeArray!(System.EventCaller)(allEventHandlers);