Skip to content

Commit

Permalink
Avoid smithing crash (address sanitizer; only numbers modified for ba…
Browse files Browse the repository at this point in the history
…se object)

Related to #728 .
  • Loading branch information
backwardsEric authored and NickMcConnell committed Nov 10, 2024
1 parent 9d9cd0a commit d0bdb82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ui-smith.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ static void sval_display(struct menu *menu, int oid, bool cursor, int row,
struct smithing_cost *cost = &local_cost;
if (cursor) {
obj = smith_obj;
known_obj = smith_obj_known;
cost = &current_cost;
}
create_base_object(choice[oid], obj);
Expand Down

0 comments on commit d0bdb82

Please sign in to comment.