mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Fix uninitialized mWaterLevel in esm4/loadwrld.cpp
This commit is contained in:
parent
493858127a
commit
61232f4b75
@ -192,10 +192,18 @@ void ESM4::World::load(ESM4::Reader& reader)
|
||||
throw std::runtime_error("ESM4::WRLD::load - Unknown subrecord " + ESM::printName(subHdr.typeId));
|
||||
}
|
||||
|
||||
if (isTES5 && usingDefaultLevels)
|
||||
if (usingDefaultLevels)
|
||||
{
|
||||
mLandLevel = -2700.f;
|
||||
mWaterLevel = -14000.f;
|
||||
if (isTES5)
|
||||
{
|
||||
mLandLevel = -2700.f;
|
||||
mWaterLevel = -14000.f;
|
||||
}
|
||||
else
|
||||
{
|
||||
mLandLevel = 0.f; // FIXME: not sure that this value is correct
|
||||
mWaterLevel = 0.f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user