Fixed potential null reference

This commit is contained in:
mathusummut
2018-09-23 15:01:24 +02:00
parent dde3804f31
commit d7c63ed9dc

View File

@@ -556,7 +556,7 @@ namespace Glest {
Texture2D *
tex = intoTexList[i];
//printf("tex # %d [%s]\n",i,tex->getPath().c_str());
if (tex != NULL) {
Vec2i texPlacement;
if (i == 0 || i % 9 == 0) {
texPlacement = Vec2i(1, h - tex->getTextureHeight());
@@ -600,6 +600,7 @@ namespace Glest {
(showMiscTime * (i + 1))));
}
}
}
if (GlobalStaticFlags::getIsNonGraphicalModeEnabled() == false) {
renderer.swapBuffers();