diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-09 22:09:36 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-09 22:09:36 -0700 |
commit | 6cfd91a8f0a367946ec73f537ef4bb112f1283cc (patch) | |
tree | ffd7129c80109fe78dbbd2d759bf776272d6e54f /src/gui/setup_video.cpp | |
parent | 6a5e9a013a2bf8ca6b99c1c45b58de4d72b662ef (diff) | |
download | mana-client-6cfd91a8f0a367946ec73f537ef4bb112f1283cc.tar.gz mana-client-6cfd91a8f0a367946ec73f537ef4bb112f1283cc.tar.bz2 mana-client-6cfd91a8f0a367946ec73f537ef4bb112f1283cc.tar.xz mana-client-6cfd91a8f0a367946ec73f537ef4bb112f1283cc.zip |
Fixed a potential crash in the setup window when setting whether a name
is viewable or not, and the player doesn't exist yet.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r-- | src/gui/setup_video.cpp | 3 |
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); } |