Fix current region check (Bug #3391)

pull/1/head
scrawl 9 years ago
parent 04b537bf5f
commit b0180cb6b4

@ -892,8 +892,7 @@ inline void WeatherManager::regionalWeatherChanged(const std::string& regionID,
MWWorld::ConstPtr player = MWMechanics::getPlayer();
if(player.isInCell())
{
std::string playerRegion = Misc::StringUtils::lowerCase(player.getCell()->getCell()->mRegion);
if(!playerRegion.empty() && (playerRegion == regionID))
if(Misc::StringUtils::ciEqual(regionID, mCurrentRegion))
{
addWeatherTransition(region.getWeather());
}

Loading…
Cancel
Save