diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-05-27 15:32:35 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-05-28 07:26:46 +0200 |
commit | 1c616215c7568b20f701ef3d5f9b15315d7f7d3a (patch) | |
tree | 7ddc2ef5cc775615672f29a80dcb721377c5073a /src/spells4.c | |
parent | cfa5b41a11e8be1ef8b5d92be523d4713a445dd7 (diff) |
Lua: Factor out "string_list_append" function
Diffstat (limited to 'src/spells4.c')
-rw-r--r-- | src/spells4.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/spells4.c b/src/spells4.c index 40cca814..ba97e065 100644 --- a/src/spells4.c +++ b/src/spells4.c @@ -599,7 +599,5 @@ void lua_cast_school_spell(s32b s, bool_ no_cost) void spell_description_add_line(s32b spell_idx, cptr line) { - string_list *e = malloc(sizeof(string_list)); - string_list_init(e, line); - sglib_string_list_add(&school_spells[spell_idx].description, e); + string_list_append(&school_spells[spell_idx].description, line); } |