From a10f8f09a6b9b4ed37d19661f38b411321415ca5 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 14 Jul 2002 07:33:22 +0000 Subject: [PATCH] bugfix kaputte curses --- src/common/triggers/removecurse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/triggers/removecurse.c b/src/common/triggers/removecurse.c index 210b7b1c0..144e4646f 100644 --- a/src/common/triggers/removecurse.c +++ b/src/common/triggers/removecurse.c @@ -74,8 +74,8 @@ static void removecurse_write(const trigger * t, FILE * F) { removecurse_data * td = (removecurse_data*)t->data.v; - fprintf(F, "%s ", itoa36(td->target->no)); - fprintf(F, "%d ", td->curse->no); + fprintf(F, "%s ", td->target?itoa36(td->target->no):0); + fprintf(F, "%d ", td->curse?td->curse->no:0); } static int