Skip to content

Commit

Permalink
fixup a crash when help for a unittype is viewed from title screen
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jul 23, 2014
1 parent 2609a18 commit ecc431d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/help.cpp
Expand Up @@ -1902,7 +1902,7 @@ class unit_topic_generator: public topic_generator
}
ss << generate_table(resistance_table);

if (display::get_singleton() != NULL) {
if (display::get_singleton() != NULL && resources::gameboard != NULL) { //check to gameboard is necessary to prevent segfault when accessing help from the title screen, at current revision.
// get the gamemap from the display object
const gamemap & map = display::get_singleton()->get_disp_context().map();

Expand Down

0 comments on commit ecc431d

Please sign in to comment.