Page MenuHomeFeedback Tracker

ActionRepairPart doesn't check if construction part is built
Reviewed, NormalPublic

Description

It will happily offer any parts for repair, even ones that are not built.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

On a damaged base building structure, attach materials required for repair. Now drag the mouse over the base building in different locations, and it will offer parts for repair even if they are not built.

Additional Information

Fix in ActionRepairPart.c, line 197:

Change

if ( construction_part )
to

if ( construction_part && construction_part.IsBuilt() )

Event Timeline

lava76 created this task.Jul 30 2022, 1:52 PM
Geez changed the task status from New to Reviewed.Aug 1 2022, 12:34 PM