diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
commit | e17e742edb3809d45ce1edc716d71b3bb93056d6 (patch) | |
tree | f4570d74cd8f0f31aa198c589808cdfaa1ab2202 /src/wizard2.cc | |
parent | f693888666c64c75a636be3504e6decb55f2865b (diff) |
Make obj_theme a non-POD struct
Diffstat (limited to 'src/wizard2.cc')
-rw-r--r-- | src/wizard2.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/wizard2.cc b/src/wizard2.cc index 837d778b..0614022c 100644 --- a/src/wizard2.cc +++ b/src/wizard2.cc @@ -866,16 +866,8 @@ static void wiz_statistics(object_type *o_ptr) object_type forge; object_type *q_ptr; - obj_theme theme; - cptr q = "Rolls: %ld, Matches: %ld, Better: %ld, Worse: %ld, Other: %ld"; - /* We can have everything */ - theme.treasure = OBJ_GENE_TREASURE; - theme.combat = OBJ_GENE_COMBAT; - theme.magic = OBJ_GENE_MAGIC; - theme.tools = OBJ_GENE_TOOL; - /* XXX XXX XXX Mega-Hack -- allow multiple artifacts */ if (artifact_p(o_ptr)) { @@ -963,7 +955,7 @@ static void wiz_statistics(object_type *o_ptr) object_wipe(q_ptr); /* Create an object */ - make_object(q_ptr, good, great, theme); + make_object(q_ptr, good, great, obj_theme::defaults()); /* XXX XXX XXX Mega-Hack -- allow multiple artifacts */ |