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

@ -537,7 +537,7 @@ passwd()
teleport()
{
register struct room *new_rp, *old_rp = roomin(&hero);
register struct room *new_rp = NULL, *old_rp = roomin(&hero);
register int rm, which;
coord old;
bool got_position = FALSE;