mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-14 01:19:59 +00:00
Fix current region check (Bug #3391)
This commit is contained in:
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…
x
Reference in New Issue
Block a user