diff arogue7/fight.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 66b0263af424
children 382ff498acdd
line wrap: on
line diff
--- a/arogue7/fight.c	Tue Aug 11 16:19:04 2015 -0400
+++ b/arogue7/fight.c	Wed Aug 12 15:42:02 2015 -0400
@@ -331,7 +331,7 @@
 bool back_stab;
 {
     register struct stats *att, *def;
-    register char *cp;
+    register char *cp = NULL;
     register int ndice, nsides, nplus, def_arm;
     bool did_hit = FALSE;
     int prop_hplus, prop_dplus;