Browse files

GameControl::OnMouseUp: don't try to move selected pcs if there are none

fixes crashing when nobody is selected and you click to move
  • Loading branch information...
1 parent 47b1c24 commit 16d09e8babe20ce0bf95032c8ea4a8a3e7c33d3f @lynxlynxlynx lynxlynxlynx committed Aug 20, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 gemrb/core/GUI/GameControl.cpp
View
2 gemrb/core/GUI/GameControl.cpp
@@ -1961,7 +1961,7 @@ void GameControl::OnMouseUp(unsigned short x, unsigned short y, unsigned short B
}
}
- if (doMove) {
+ if (doMove && game->selected.size() > 0) {
// construct a sorted party
// TODO: this is still ugly, help?
std::vector<Actor *> party;

0 comments on commit 16d09e8

Please sign in to comment.