diff options
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp index 027a5440..41282ddd 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -329,8 +329,8 @@ Map::getWalk(int x, int y) } // Check for collision with a being - Beings *beings = beingManager->getAll(); - for (BeingIterator i = beings->begin(); i != beings->end(); i++) { + Beings &beings = beingManager->getAll(); + for (BeingIterator i = beings.begin(); i != beings.end(); i++) { // job 45 is a portal, they don't collide if ((*i)->mX == x && (*i)->mY == y && (*i)->mJob != 45) { return false; |