diff options
author | Bardur Arantsson <bardur@scientician.net> | 2013-07-15 17:30:16 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2013-08-08 16:33:29 +0200 |
commit | 13503952c8aef44cebd3289a15b9ad2767a3937c (patch) | |
tree | e604b3962e57bda8bced48466e3baabc37f94b49 /src/help.c | |
parent | 62786de50b3a1a4ff6b945b31c54185b409bc85a (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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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(); |