Praytic / youtd2

Classic community-driven session-based Tower Defense game with RPG elements.
https://youtd2.com/
MIT License
96 stars 16 forks source link

Game crashed because _selection_outline is `null` for ItemDrop #390

Closed Praytic closed 8 months ago

Praytic commented 8 months ago

Game randomly crashed when I selected item from Trash Heap tower and dropped it on the ground:

Invalid get index 'material' (on base: 'Nil'). in _selection_outline.material.set_shader_parameter("line_color", Color.WHITE)

Apparently Unit sometimes can have _selection_outline=null.