mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 09:15:38 +00:00
Fix uninitialized mWaterLevel in esm4/loadwrld.cpp
This commit is contained in:
parent
493858127a
commit
61232f4b75
1 changed files with 11 additions and 3 deletions
|
@ -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…
Reference in a new issue