summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map.cpp b/src/map.cpp
index ec796768..c5049418 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -54,10 +54,10 @@ void set_walk(short x_c, short y_c, bool walkable) {
bool get_walk(short x_c, short y_c) {
bool ret = (tiled_map.tiles[x_c][y_c].data[3] & 0x0002)>0;
if (ret == true) {
- std::list<NODE*>::iterator i = beings.begin();
+ std::list<Being *>::iterator i = beings.begin();
while (i != beings.end() && ret == true) {
- NODE *node = (*i);
- if (get_x(node->coordinates)==x_c && get_y(node->coordinates)==y_c)
+ Being *being = (*i);
+ if (being->x==x_c && being->y==y_c)
ret = false;
i++;
}