From 15cd3c178bff79a55b58e9489bfa846876e22723 Mon Sep 17 00:00:00 2001 From: NeveHanter Date: Tue, 20 Dec 2016 21:23:55 +0100 Subject: [PATCH] Clamp price multiplication to 1, as it resulted in player alone traveling at no fee. --- apps/openmw/mwgui/travelwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/travelwindow.cpp b/apps/openmw/mwgui/travelwindow.cpp index 80a622803..43a4efc7a 100644 --- a/apps/openmw/mwgui/travelwindow.cpp +++ b/apps/openmw/mwgui/travelwindow.cpp @@ -78,7 +78,7 @@ namespace MWGui std::set followers; MWBase::Environment::get().getMechanicsManager()->getActorsFollowing(player, followers); - unsigned int travellingFollowers = 0; + int travellingFollowers = 0; for(std::set::iterator it = followers.begin();it != followers.end();++it) { MWWorld::Ptr follower = *it; @@ -92,7 +92,7 @@ namespace MWGui } // Apply followers cost, in vanilla one follower travels for free - price *= travellingFollowers; + price *= std::max(1, travellingFollowers); price = MWBase::Environment::get().getMechanicsManager()->getBarterOffer(mPtr, price, true);