Files
Bubberstation/code/modules/mob
SkyratBot 5ec9ce0fec [MIRROR] Fixes runtime when Cyborgs spawn with AI present (#2643)
* Move module creation up in Initialize (#56086)

This is caused by Initialize trying to link the Cyborg to an AI, when this is done successfully toggle_headlamp is called
Toggle_headlamp however calls update_icons which tries to set icon_state to module.cyborg_base_icon however module at this point is null because the default module is assigned later in Initialize.
This PR moves the module creation up inside Initialize to prevent this.

* Fixes runtime when Cyborgs spawn with AI present

Co-authored-by: Gamer025 <33846895+Gamer025@users.noreply.github.com>
2021-01-12 01:47:01 +01:00
..