Skip to content

Commit

Permalink
FIX: correctly book fixed cost when removing vehicles
Browse files Browse the repository at this point in the history
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@7644 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information
Dwachs committed Nov 7, 2015
1 parent 1fab1d1 commit aea7f29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions simconvoi.cc
Expand Up @@ -3099,6 +3099,8 @@ void convoi_t::destroy()
fahr[i]->set_flag( obj_t::not_on_map );

}
player_t::add_maintenance( owner_p, -fahr[i]->get_besch()->get_maintenance(), fahr[i]->get_besch()->get_waytype() );

fahr[i]->discard_cargo();
fahr[i]->cleanup(owner_p);
delete fahr[i];
Expand Down

0 comments on commit aea7f29

Please sign in to comment.