diff options
Diffstat (limited to 'src/Character.cpp')
-rw-r--r-- | src/Character.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Character.cpp b/src/Character.cpp index 5ebc39e..d5f8bc0 100644 --- a/src/Character.cpp +++ b/src/Character.cpp @@ -69,7 +69,7 @@ void Character::action(vector <Character> men) bool Character::check(Location L, vector <Character> men) { - for(int i = 0; i < 10; i++) + for(int i = 0; i < men.size(); i++) if(L.x == men[i].getLocation().x && L.y == men[i].getLocation().y) return false; |