mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
position() constructor: Take map ref, not ptr
This commit is contained in:
parent
1eaf680111
commit
a131964cc0
2 changed files with 4 additions and 4 deletions
4
map.h
4
map.h
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue