Skip to content

Commit

Permalink
CODE: initialize some variables
Browse files Browse the repository at this point in the history
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@7103 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information
Dwachs committed Mar 22, 2014
1 parent 063fd54 commit c9ccda3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion besch/obj_besch_std_name.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class obj_besch_transport_related_t : public obj_besch_timelined_t {

public:
obj_besch_transport_related_t() : obj_besch_timelined_t(),
maintenance(0), cost(0), wt(255), topspeed(0) {}
maintenance(0), cost(0), axle_load(9999), wt(255), topspeed(0) {}

sint32 get_maintenance() const { return maintenance; }
sint32 get_wartung() const { return maintenance; }
Expand Down
2 changes: 1 addition & 1 deletion display/scr_coord.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class scr_rect
scr_rect( const scr_coord& pt, scr_coord_val w, scr_coord_val h ) { set( pt.x, pt.y, w, h ); }
scr_rect( const scr_coord& pt, const scr_size& sz ) { set( pt.x, pt.y, sz.w, sz.h ); }
scr_rect( scr_coord_val x, scr_coord_val y, scr_coord_val w, scr_coord_val h ) { set( x, y, w, h ); }
scr_rect( scr_size size ) { w = size.w; h=size.h; }
scr_rect( scr_size size ) { w = size.w; h=size.h; x=0; y=0; }
scr_rect( const scr_coord& point1, const scr_coord& point2 ) { set( point1.x, point1.y, point2.x-point1.x, point2.y-point1.y ); }

// Type cast operators
Expand Down
1 change: 1 addition & 0 deletions simmenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ class two_click_werkzeug_t : public werkzeug_t {
public:
two_click_werkzeug_t(uint16 const id) : werkzeug_t(id) {
MEMZERO(start_marker);
first_click_var = true;
}

void rdwr_custom_data(memory_rw_t*) OVERRIDE;
Expand Down

0 comments on commit c9ccda3

Please sign in to comment.