From d283db70abe904fddd8aefbd52b35d6e066dd98f Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 14 Jun 2005 14:24:28 +0000 Subject: Added background to minimap. Only used in Tonori Desert map for now, and its style is up for discussion. --- src/being.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index 80de74e1..7ed73b8f 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -203,7 +203,13 @@ void Being::setDestination(int destX, int destY) { this->destX = destX; this->destY = destY; - setPath(tiledMap->findPath(x, y, destX, destY)); + + Map *map = engine->getCurrentMap(); + + if (map != NULL) + { + setPath(map->findPath(x, y, destX, destY)); + } } void Being::setHairColor(int color) -- cgit v1.2.3-70-g09d2