Error Pops Up When Ladder Is Left Floating In Air After Destroying a Building

Summary: Error Pops Up When Ladder Is Left Floating In Air After Destroying a Building

Steps to reproduce:

  1. Destroy Building
  2. Ladder is Left over from Building for Some Reason

Expected Results: No error and no floating ladder

Actual Results: Error and floating ladder

Notes: Error and floating ladder

Attachments:

release-687 (x64)
…hearth/components/scaffolding/scaffolding_region.lua:785: attempt to index field ‘_owning_scaffolding’ (a nil value)
stack traceback:
radiant/modules/common.lua:237: in function 'report_traceback’
radiant/modules/common.lua:248: in function <radiant/modules/common.lua:242>
…hearth/components/scaffolding/scaffolding_region.lua:785: in function 'instance’
radiant/modules/events.lua:291: in function <radiant/modules/events.lua:285>
[C]: in function 'xpcall’
radiant/modules/common.lua:257: in function 'xpcall’
radiant/modules/events.lua:285: in function <radiant/modules/events.lua:251>
[C]: in function 'destroy_entity’
radiant/modules/entities.lua:82: in function 'destroy_entity’
stonehearth/services/server/build/ladder_builder.lua:143: in function <stonehearth/services/server/build/ladder_builder.lua:124>
[C]: in function 'destroy’
stonehearth/services/server/build/ladder_manager.lua:71: in function '_destroy_builder’
stonehearth/services/server/build/ladder_builder.lua:456: in function '_check_if_valid’
stonehearth/services/server/build/ladder_builder.lua:326: in function '_update_build_mode’
stonehearth/services/server/build/ladder_builder.lua:115: in function <stonehearth/services/server/build/ladder_builder.lua:114>

Version Number and Mods in use:
Alpha 19 release 687 x64; radiant and stonehearth

System Information: x64 Processor, GTX 1060, 16 GB of RAM

A post was merged into an existing topic: Engine error about scaffolding A19