diff --git a/src/artifact.c b/src/artifact.c index d180cb2fb..e4f4c89bf 100644 --- a/src/artifact.c +++ b/src/artifact.c @@ -301,7 +301,7 @@ mk_artifact( otmp = 0; } /* otherwise, otmp has not changed; just fallthrough to return it */ } - if (permapoisoned(otmp)) + if (otmp && permapoisoned(otmp)) otmp->opoisoned = 1; return otmp; }