Advanced Rogue 7: initialize multiple variables.
MSVC complained that they might be used uninitialized. In some cases, this might have been possible. XRogue already has initializations for all these variables.
This commit is contained in:
parent
b41fb230b0
commit
295a180ea1
12 changed files with 23 additions and 23 deletions
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
do_passages()
|
||||
{
|
||||
register struct rdes *r1, *r2;
|
||||
register struct rdes *r1, *r2 = NULL;
|
||||
register int i, j;
|
||||
register int roomcount;
|
||||
static struct rdes
|
||||
|
|
@ -137,7 +137,7 @@ do_passages()
|
|||
conn(r1, r2)
|
||||
int r1, r2;
|
||||
{
|
||||
register struct room *rpf, *rpt;
|
||||
register struct room *rpf, *rpt = NULL;
|
||||
register char rmt;
|
||||
register int distance, max_diag, offset, i;
|
||||
register int rm;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue