From f3022a1644fd063b7191fb2f7946666436a1ee55 Mon Sep 17 00:00:00 2001 From: Eric Branlund Date: Sat, 7 Dec 2019 00:06:22 -0800 Subject: [PATCH] Set nr_quarks in quarks_init() to avoid crash when the player starts a new game without exiting and the previous character carried an inscribed object. --- src/z-quark.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/z-quark.c b/src/z-quark.c index dfe4d382..d0741040 100644 --- a/src/z-quark.c +++ b/src/z-quark.c @@ -54,6 +54,7 @@ const char *quark_str(quark_t q) void quarks_init(void) { + nr_quarks = 1; alloc_quarks = QUARKS_INIT; quarks = mem_zalloc(alloc_quarks * sizeof(char*)); } -- 2.21.0 (Apple Git-122.2)