summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/init1.cc5
-rw-r--r--src/object_kind.hpp1
2 files changed, 2 insertions, 4 deletions
diff --git a/src/init1.cc b/src/init1.cc
index ec3b768..d9474e6 100644
--- a/src/init1.cc
+++ b/src/init1.cc
@@ -3989,16 +3989,15 @@ errr init_k_info_txt(FILE *fp)
/* Process 'W' for "More Info" (one line only) */
if (buf[0] == 'W')
{
- int level, extra, wgt;
+ int level, unused, wgt;
long cost;
/* Scan for the values */
if (4 != sscanf(buf + 2, "%d:%d:%d:%ld",
- &level, &extra, &wgt, &cost)) return (1);
+ &level, &unused, &wgt, &cost)) return (1);
/* Save the values */
k_ptr->level = level;
- k_ptr->extra = extra;
k_ptr->weight = wgt;
k_ptr->cost = cost;
diff --git a/src/object_kind.hpp b/src/object_kind.hpp
index a67d1d6..505f54d 100644
--- a/src/object_kind.hpp
+++ b/src/object_kind.hpp
@@ -53,7 +53,6 @@ struct object_kind
byte chance[ALLOCATION_MAX]; /* Allocation chance(s) */
byte level; /* Level */
- byte extra; /* Something */
byte d_attr; /* Default object attribute */