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:
John "Elwin" Edwards 2015-08-12 15:42:02 -04:00
parent b41fb230b0
commit 295a180ea1
12 changed files with 23 additions and 23 deletions

View file

@ -33,13 +33,13 @@ coord *direction;
int which;
int flags;
{
register struct linked_list *item;
register struct linked_list *item = NULL;
register struct thing *tp;
register int y, x, bonus;
struct linked_list *nitem;
struct object *nobj;
bool cursed, blessed, is_player;
char *mname;
char *mname = "";
cursed = flags & ISCURSED;
blessed = flags & ISBLESSED;