mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 18:09:39 +00:00
Improve checking for older weather records
This commit is contained in:
parent
7817c52cbb
commit
cd8ec5c11e
1 changed files with 2 additions and 1 deletions
|
@ -725,7 +725,8 @@ bool WeatherManager::readRecord(ESM::ESMReader& reader, uint32_t type)
|
||||||
{
|
{
|
||||||
if(ESM::REC_WTHR == type)
|
if(ESM::REC_WTHR == type)
|
||||||
{
|
{
|
||||||
if(reader.getFormat() < ESM::SavedGame::sCurrentFormat)
|
static const int oldestCompatibleSaveFormat = 2;
|
||||||
|
if(reader.getFormat() < oldestCompatibleSaveFormat)
|
||||||
{
|
{
|
||||||
// Weather state isn't really all that important, so to preserve older save games, we'll just discard the
|
// Weather state isn't really all that important, so to preserve older save games, we'll just discard the
|
||||||
// older weather records, rather than fail to handle the record.
|
// older weather records, rather than fail to handle the record.
|
||||||
|
|
Loading…
Reference in a new issue