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(); MWWorld::ConstPtr player = MWMechanics::getPlayer();
if(player.isInCell()) if(player.isInCell())
{ {
std::string playerRegion = Misc::StringUtils::lowerCase(player.getCell()->getCell()->mRegion); if(Misc::StringUtils::ciEqual(regionID, mCurrentRegion))
if(!playerRegion.empty() && (playerRegion == regionID))
{ {
addWeatherTransition(region.getWeather()); addWeatherTransition(region.getWeather());
} }

Loading…
Cancel
Save