position() constructor: Take map ref, not ptr

This commit is contained in:
Petr Baudis 2011-11-26 19:40:39 +01:00
parent 1eaf680111
commit a131964cc0
2 changed files with 4 additions and 4 deletions

4
map.h
View file

@ -26,11 +26,11 @@ public:
int x, y;
class map *map;
position(int x_, int y_, class map *map_)
position(int x_, int y_, class map &map_)
{
x = x_;
y = y_;
map = map_;
map = &map_;
};
class position *next_in(int dir_x, int dir_y);