diff options
-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; |