Skip to content

Commit

Permalink
Improve checking for older weather records
Browse files Browse the repository at this point in the history
  • Loading branch information
slothlife committed Aug 27, 2015
1 parent 7817c52 commit cd8ec5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/openmw/mwworld/weather.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,8 @@ bool WeatherManager::readRecord(ESM::ESMReader& reader, uint32_t 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
// older weather records, rather than fail to handle the record.
Expand Down

0 comments on commit cd8ec5c

Please sign in to comment.