summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/setup_video.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index a23f5923..afc7b1b5 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -461,7 +461,8 @@ void Setup_Video::action(const gcn::ActionEvent &event)
{
// Notify the local player that settings have changed for the name
// and requires an update
- player_node->mUpdateName = true;
+ if (player_node)
+ player_node->mUpdateName = true;
config.setValue("showownname",
mNameCheckBox->isSelected() ? 1 : 0);
}