Guard against uninitialized variables

This commit is contained in:
Eric Fischer 2016-10-14 12:19:56 -07:00
parent a5d803aa9a
commit 9160e6add5

View File

@ -24,9 +24,14 @@ struct draw {
this->op = nop;
this->x = nx;
this->y = ny;
this->necessary = 0;
}
draw() {
this->op = 0;
this->x = 0;
this->y = 0;
this->necessary = 0;
}
bool operator<(draw const &s) const {