From 0ce4d68d0440faaba1a448564c37e552f961095c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 27 Aug 2018 19:55:29 -0700 Subject: [PATCH] ULTIMA1: Fix returning to overworld from cities & castles --- engines/ultima/ultima1/widgets/transport.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } }