Fix #9877: GS could trigger 'Cost: 0' cost message (#9878)

This commit is contained in:
Charles Pigott
2022-05-05 19:51:56 +01:00
committed by GitHub
parent 142321da79
commit 146827c458
4 changed files with 7 additions and 4 deletions

View File

@@ -1188,7 +1188,7 @@ CargoPayment::~CargoPayment()
if (this->visual_transfer != 0) {
ShowFeederIncomeAnimation(this->front->x_pos, this->front->y_pos,
this->front->z_pos, this->visual_transfer, -this->visual_profit);
} else if (this->visual_profit != 0) {
} else {
ShowCostOrIncomeAnimation(this->front->x_pos, this->front->y_pos,
this->front->z_pos, -this->visual_profit);
}