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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue