summaryrefslogtreecommitdiff
path: root/src/help.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2013-07-15 17:30:16 +0200
committerBardur Arantsson <bardur@scientician.net>2013-08-08 16:33:29 +0200
commit13503952c8aef44cebd3289a15b9ad2767a3937c (patch)
treee604b3962e57bda8bced48466e3baabc37f94b49 /src/help.c
parent62786de50b3a1a4ff6b945b31c54185b409bc85a (diff)
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.
Diffstat (limited to 'src/help.c')
-rw-r--r--src/help.c5
1 files changed, 4 insertions, 1 deletions
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();