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
|
|
@ -277,7 +277,7 @@ do_bag(item)
|
|||
register struct linked_list *item;
|
||||
{
|
||||
|
||||
register struct linked_list *titem;
|
||||
register struct linked_list *titem = NULL;
|
||||
register struct object *obj, *tobj;
|
||||
bool doit = TRUE;
|
||||
|
||||
|
|
@ -838,8 +838,8 @@ got_scroll:
|
|||
use_mm(which)
|
||||
int which;
|
||||
{
|
||||
register struct object *obj;
|
||||
register struct linked_list *item;
|
||||
register struct object *obj = NULL;
|
||||
register struct linked_list *item = NULL;
|
||||
bool cursed, blessed, is_mm;
|
||||
|
||||
cursed = FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue