diff --git a/engines/ultima/ultima1/widgets/transport.cpp b/engines/ultima/ultima1/widgets/transport.cpp index 6cf11098616..5e086fd7916 100644 --- a/engines/ultima/ultima1/widgets/transport.cpp +++ b/engines/ultima/ultima1/widgets/transport.cpp @@ -48,7 +48,7 @@ uint TransportOnFoot::getTileNum() const { void TransportOnFoot::moveTo(const Point &destPos, Shared::Direction dir) { Transport::moveTo(destPos, dir); - Map::Ultima1Map::MapBase *map = getMap(); + Shared::Map *map = getGame()->getMap(); if (destPos.x < 0 || destPos.y < 0 || destPos.x >= (int)map->width() || destPos.y >= (int)map->height()) { // Handling for leaving locations by walking off the edge of the map @@ -57,7 +57,6 @@ void TransportOnFoot::moveTo(const Point &destPos, Shared::Direction dir) { // Load the overworld map map->load(Map::MAP_OVERWORLD); - map->setPosition(destPos); } }