diff options
author | Bardur Arantsson <bardur@scientician.net> | 2018-03-25 20:07:30 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2018-03-25 20:07:30 +0200 |
commit | 73238d2c617be1600bbb067e0d0bd388488f68d3 (patch) | |
tree | d7cec1a5b67827bcca9131ecec33dd06deb1a922 /src/init1.cc | |
parent | 6e561f7024f96ff3d5c557e51fff30ea541fd4a0 (diff) |
Change ego_item_type::name to std::string
Diffstat (limited to 'src/init1.cc')
-rw-r--r-- | src/init1.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/init1.cc b/src/init1.cc index 7a5ca525..34e4e0cf 100644 --- a/src/init1.cc +++ b/src/init1.cc @@ -3478,10 +3478,7 @@ errr init_e_info_txt(FILE *fp) /* Point at the "info" */ e_ptr = &expand_to_fit_index(e_info, i); - - /* Copy name */ - assert(!e_ptr->name); - e_ptr->name = my_strdup(s); + e_ptr->name = s; /* Next... */ continue; |