Crash when calling the deconstruct_area function via a script if there is a ghost in the area.
Steps to reproduce:
1. Start new game.
2. Switch to editor mode.
3. Place any ghost (i used the wooden chest).
4. Use snippet function (the ghost must be in the area):
Code: Select all
local surface = game.player.surface
local force = game.player.force
surface.deconstruct_area{area=area, force=force}
The ghost must disappear.