Mercurial > hg > early-roguelike
comparison arogue7/scrolls.c @ 200:1cd604c827a3
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.
author | John "Elwin" Edwards |
---|---|
date | Wed, 12 Aug 2015 15:42:02 -0400 |
parents | 0298a68cc179 |
children | f9ef86cf22b2 |
comparison
equal
deleted
inserted
replaced
199:efdbeec0816d | 200:1cd604c827a3 |
---|---|
60 read_scroll(which, flag, is_scroll) | 60 read_scroll(which, flag, is_scroll) |
61 register int which; | 61 register int which; |
62 int flag; | 62 int flag; |
63 bool is_scroll; | 63 bool is_scroll; |
64 { | 64 { |
65 register struct object *obj, *nobj; | 65 register struct object *obj = NULL, *nobj; |
66 register struct linked_list *item, *nitem; | 66 register struct linked_list *item, *nitem; |
67 register int i,j; | 67 register int i,j; |
68 register char ch, nch; | 68 register char ch, nch; |
69 bool cursed, blessed; | 69 bool cursed, blessed; |
70 | 70 |