rogue3: initialize various pointers.
MSVC is afraid they might get used while uninitialized.
This commit is contained in:
parent
2d3d25c5e9
commit
00d28d536a
4 changed files with 6 additions and 6 deletions
|
|
@ -162,7 +162,7 @@ chase(struct thing *tp, coord *ee)
|
||||||
int x, y;
|
int x, y;
|
||||||
int dist, thisdist;
|
int dist, thisdist;
|
||||||
struct linked_list *item;
|
struct linked_list *item;
|
||||||
struct object *obj;
|
struct object *obj = NULL;
|
||||||
coord *er = &tp->t_pos;
|
coord *er = &tp->t_pos;
|
||||||
int ch;
|
int ch;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -339,7 +339,7 @@ rndmove(struct thing *who)
|
||||||
int ch;
|
int ch;
|
||||||
int ex, ey, nopen = 0;
|
int ex, ey, nopen = 0;
|
||||||
struct linked_list *item;
|
struct linked_list *item;
|
||||||
struct object *obj;
|
struct object *obj = NULL;
|
||||||
static coord ret; /* what we will be returning */
|
static coord ret; /* what we will be returning */
|
||||||
static coord dest;
|
static coord dest;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@
|
||||||
void
|
void
|
||||||
add_pack(struct linked_list *item, int silent)
|
add_pack(struct linked_list *item, int silent)
|
||||||
{
|
{
|
||||||
struct linked_list *ip, *lp;
|
struct linked_list *ip, *lp = NULL;
|
||||||
struct object *obj, *op;
|
struct object *obj, *op = NULL;
|
||||||
int exact, from_floor;
|
int exact, from_floor;
|
||||||
|
|
||||||
if (item == NULL)
|
if (item == NULL)
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
void
|
void
|
||||||
do_passages()
|
do_passages()
|
||||||
{
|
{
|
||||||
struct rdes *r1, *r2;
|
struct rdes *r1, *r2 = NULL;
|
||||||
int i, j;
|
int i, j;
|
||||||
int roomcount;
|
int roomcount;
|
||||||
static struct rdes
|
static struct rdes
|
||||||
|
|
@ -131,7 +131,7 @@ do_passages()
|
||||||
void
|
void
|
||||||
conn(int r1, int r2)
|
conn(int r1, int r2)
|
||||||
{
|
{
|
||||||
struct room *rpf, *rpt;
|
struct room *rpf, *rpt = NULL;
|
||||||
int rmt;
|
int rmt;
|
||||||
int distance, turn_spot, turn_distance;
|
int distance, turn_spot, turn_distance;
|
||||||
int rm;
|
int rm;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue