warning fix artifact.c

src/artifact.c(65): warning C4132: 'zero_artiexist': const object
should be initialized
This commit is contained in:
nhmall
2022-03-10 09:15:04 -05:00
parent 8551594ef8
commit 274984480c
+1 -1
View File
@@ -62,7 +62,7 @@ static xchar artidisco[NROFARTIFACTS];
* bulk re-init if game restart ever gets implemented. They are saved * bulk re-init if game restart ever gets implemented. They are saved
* and restored but that is done through this file so they can be local. * and restored but that is done through this file so they can be local.
*/ */
static const struct arti_info zero_artiexist; /* all bits zero */ static const struct arti_info zero_artiexist = {0}; /* all bits zero */
static void hack_artifacts(void); static void hack_artifacts(void);
static boolean attacks(int, struct obj *); static boolean attacks(int, struct obj *);