mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[core] Don't crash in debug on mismatched (test) mwm versions
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -969,7 +969,7 @@ void Storage::RegisterLocalFile(platform::LocalCountryFile const & localFile)
|
||||
/// Funny, but ptr->GetCountryFile() has valid name only. Size and sha1 are not initialized.
|
||||
/// @todo Store only name (CountryId) in LocalCountryFile instead of CountryFile?
|
||||
if (m_currentVersion == ptr->GetVersion() && size != GetCountryFile(countryId).GetRemoteSize())
|
||||
LOG(LERROR, ("Inconsistent MWM and version for", *ptr));
|
||||
LOG(LWARNING, ("Inconsistent MWM and version for", *ptr));
|
||||
}
|
||||
|
||||
void Storage::DeleteCountryFiles(CountryId const & countryId, MapFileType type, bool deferredDelete)
|
||||
|
||||
Reference in New Issue
Block a user