display: Fix display type 340 bug.

In the vector function, the flags variable wasn't initialized.  The
function can sometimes return boolean true even if it shouldn't.
This commit is contained in:
Lars Brinkhoff 2018-05-16 00:07:27 -07:00 committed by Mark Pizzolato
parent a3c40cd290
commit d7f1942998

View file

@ -453,7 +453,7 @@ vector(int i, int sy, int dy, int sx, int dx)
{
struct type340 *u = UNIT(0);
int x0, y0, x1, y1;
int flags;
int flags = 0;
DEBUGF(("v i%d y%c%d x%c%d\r\n", i,
(sy ? '-' : '+'), dy,