From 13503952c8aef44cebd3289a15b9ad2767a3937c Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Mon, 15 Jul 2013 17:30:16 +0200 Subject: Fix assert in case of subrace choices with no help The assert would trigger when trying to access the help from the Ent -> Classic menu item which has no associated help entry. --- src/help.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/help.c') diff --git a/src/help.c b/src/help.c index 6d196060..7aae360e 100644 --- a/src/help.c +++ b/src/help.c @@ -674,7 +674,10 @@ void init_hooks_help() */ static void show_context_help(context_help_type *context_help) { - assert(context_help != NULL); + if (context_help == NULL) + { + return; + } screen_save(); -- cgit v1.2.3