Skip to content

Commit

Permalink
Initialize an uninitialized variable that resulted in 1.4 billion
Browse files Browse the repository at this point in the history
  extraneous undead rising from their graves!
  • Loading branch information
sgb committed Oct 25, 2013
1 parent c0e42d2 commit c9232c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 139,7 @@ Unit::Unit(int seq, Faction *f, int a)
savedmovement = 0;
savedmovedir = -1;
ClearOrders();
raised = 0;
}

Unit::~Unit()
Expand Down

0 comments on commit c9232c2

Please sign in to comment.