forked from organicmaps/organicmaps
Fixed debug check for invalid empty vector[0] access
This commit is contained in:
parent
3b749093f1
commit
5f77946b9a
1 changed files with 2 additions and 1 deletions
|
@ -252,7 +252,8 @@ void ScreenCoverage::Draw(yg::gl::Screen * s, ScreenBase const & screen)
|
|||
infos.push_back(bi);
|
||||
}
|
||||
|
||||
s->blit(&infos[0], infos.size(), true);
|
||||
if (!infos.empty())
|
||||
s->blit(&infos[0], infos.size(), true);
|
||||
|
||||
if (m_stylesCache)
|
||||
s->setAdditionalSkinPage(m_stylesCache->cachePage());
|
||||
|
|
Loading…
Add table
Reference in a new issue