forked from teamnwah/openmw-tes3coop
Fix current region check (Bug #3391)
This commit is contained in:
parent
04b537bf5f
commit
b0180cb6b4
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue