]> granicus.if.org Git - nethack/commitdiff
initializers
authornhmall <nhmall@nethack.org>
Sat, 25 Jun 2022 19:16:57 +0000 (15:16 -0400)
committernhmall <nhmall@nethack.org>
Sat, 25 Jun 2022 19:16:57 +0000 (15:16 -0400)
src/invent.c
win/tty/wintty.c

index 7dbfaa64729b84bd3271ae9e98407efc461c6388..1fbe5f2859708b252c6db8036a947d635cac8116 100644 (file)
@@ -5343,7 +5343,7 @@ display_binventory(int x, int y, boolean as_if_seen)
 
 #if defined(CORE_INVENT)
 /* enum and structs are defined in wintype.h */
-static perminvent_info zeropi = { 0 };
+static perminvent_info zeropi = { {0L,0,0,0,0,0,0,0}, {0,0,0,0,{0},0} };
 static perminvent_info pi_info;
 static char Empty[1] = { '\0' };
 static int done_environment_var = 0;
index fbf9992d0a783726de7f85a421a8935ec776b81c..09c505877a6b8d70240929a1d655c6eb733cea94 100644 (file)
@@ -255,7 +255,7 @@ void g_pututf8(uint8 *utf8str);
 
 #ifdef TTY_PERM_INVENT
 void tty_perm_invent_toggled(boolean negated);
-static struct tty_perminvent_cell zerottycell = { 0, 0, 0, 0, { 0 } };
+static struct tty_perminvent_cell zerottycell = { 0, 0, 0, { 0 }, 0 };
 static glyph_info zerogi = { 0 };
 #ifdef CORE_INVENT
 static struct to_core zero_tocore = { 0 };