Graphics/TextSprite: Fix crash

Former-commit-id: c659044edff45afc7eec91065619bdfb402bc32d
This commit is contained in:
Lynix 2015-11-14 11:43:24 +01:00
parent 6a3eb68225
commit 682b8811f5
1 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,8 @@ namespace Nz
for (auto& pair : m_renderInfos)
{
RenderIndices& indices = pair.second;
if (indices.count == 0)
continue; //< Ignore empty render indices
SparsePtr<Color> color = colorPtr + indices.first*4;
SparsePtr<Vector3f> pos = posPtr + indices.first*4;