diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-01 11:17:41 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-01 11:17:41 +0000 |
commit | 361a7cb45ec817b5fc4c8d35070cad527ba9cc51 (patch) | |
tree | a4322e9e90938731f02904bd9953025b080ee60d | |
parent | f588a615a5a33032047324411940e87267fc2ef9 (diff) | |
download | mana-client-361a7cb45ec817b5fc4c8d35070cad527ba9cc51.tar.gz mana-client-361a7cb45ec817b5fc4c8d35070cad527ba9cc51.tar.bz2 mana-client-361a7cb45ec817b5fc4c8d35070cad527ba9cc51.tar.xz mana-client-361a7cb45ec817b5fc4c8d35070cad527ba9cc51.zip |
Adding safety check to walk check.
-rw-r--r-- | src/gui/gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 5ef31a78..625d348f 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -103,7 +103,7 @@ void Gui::mousePress(int mx, int my, int button) // Mouse pressed on window container (basically, the map) // When conditions for walking are met, set new player destination - if (player_node->action != DEAD && current_npc == 0 && + if (player_node && player_node->action != DEAD && current_npc == 0 && button == gcn::MouseInput::LEFT) { int tilex = mx / 32 + camera_x; |