Skip to content

Commit

Permalink
Remove double free (introduced with std::unique_ptr<COrder>).
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Oct 8, 2023
1 parent a63285c commit d22bc27
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/action/action_build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ bool COrder_Build::StartBuilding(CUnit &unit, CUnit &ontop)
}

// Must set action before placing, otherwise it will incorrectly mark radar
delete build->CurrentOrder();
build->Orders[0] = COrder::NewActionBuilt(unit, *build);

UpdateUnitSightRange(*build);
Expand Down

0 comments on commit d22bc27

Please sign in to comment.