Fix editor crash introduced by bad use of globals
Use dedicated type for Objects[] array
Use assignment instead of memcpy
Mark control_center_triggers_write input as const