mirror of
https://github.com/glest/glest-source.git
synced 2025-08-26 17:34:24 +02:00
Fixed potential null reference
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user