comparison arogue7/wizard.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 b786053d2f37
children f9ef86cf22b2
comparison
equal deleted inserted replaced
199:efdbeec0816d 200:1cd604c827a3
535 * Bamf the hero someplace else 535 * Bamf the hero someplace else
536 */ 536 */
537 537
538 teleport() 538 teleport()
539 { 539 {
540 register struct room *new_rp, *old_rp = roomin(&hero); 540 register struct room *new_rp = NULL, *old_rp = roomin(&hero);
541 register int rm, which; 541 register int rm, which;
542 coord old; 542 coord old;
543 bool got_position = FALSE; 543 bool got_position = FALSE;
544 544
545 /* Disrupt whatever the hero was doing */ 545 /* Disrupt whatever the hero was doing */