Fix (r103): crash on fulfilling goals removed (was copy and paste error)

This commit is contained in:
jottyfan
2015-06-16 22:05:04 +02:00
parent 2e9e1d14ea
commit f3ba7e36ff

View File

@@ -165,7 +165,7 @@ function CompanyGoal::UpdateDelivered(mon, comp_id)
} }
local goal_won_news; local goal_won_news;
if (this.reward > 0) { if (this.reward > 0) {
GSCompany.ChangeBankBalance(this.comp_id, goal.reward, 0); GSCompany.ChangeBankBalance(comp_id, this.reward, 0);
goal_won_news = GSText(GSText.STR_COMPANY_GOAL_REWARD_WON_NEWS, cargo.cid, this.wanted_amount, destination_string_news, this.reward); goal_won_news = GSText(GSText.STR_COMPANY_GOAL_REWARD_WON_NEWS, cargo.cid, this.wanted_amount, destination_string_news, this.reward);
} else { } else {
goal_won_news = GSText(GSText.STR_COMPANY_GOAL_WON_NEWS, cargo.cid, this.wanted_amount, destination_string_news); goal_won_news = GSText(GSText.STR_COMPANY_GOAL_WON_NEWS, cargo.cid, this.wanted_amount, destination_string_news);