fixed a crash in "white" rendering when you don't actually have the graphic for "white".
This commit is contained in:
@@ -185,8 +185,11 @@ void CardGui::Render()
|
|||||||
if (isActiveConnectedParent)
|
if (isActiveConnectedParent)
|
||||||
{
|
{
|
||||||
JQuadPtr white = WResourceManager::Instance()->GetQuad("white");
|
JQuadPtr white = WResourceManager::Instance()->GetQuad("white");
|
||||||
white->SetColor(ARGB(255,230,50,50));
|
if(white)
|
||||||
renderer->RenderQuad(white.get(), actX, actY, actT, 30 * actZ / 16, 42 * actZ / 16);
|
{
|
||||||
|
white->SetColor(ARGB(255,230,50,50));
|
||||||
|
renderer->RenderQuad(white.get(), actX, actY, actT, 30 * actZ / 16, 42 * actZ / 16);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Am I a child of a selected card, or am I a child and myself being selected?
|
// Am I a child of a selected card, or am I a child and myself being selected?
|
||||||
@@ -209,8 +212,11 @@ void CardGui::Render()
|
|||||||
if (isActiveConnectedChild)
|
if (isActiveConnectedChild)
|
||||||
{
|
{
|
||||||
JQuadPtr white = WResourceManager::Instance()->GetQuad("white");
|
JQuadPtr white = WResourceManager::Instance()->GetQuad("white");
|
||||||
|
if(white)
|
||||||
|
{
|
||||||
white->SetColor(ARGB(255,0,0,255));
|
white->SetColor(ARGB(255,0,0,255));
|
||||||
renderer->RenderQuad(white.get(), actX, actY, actT, 30 * actZ / 16, 42 * actZ / 16);
|
renderer->RenderQuad(white.get(), actX, actY, actT, 30 * actZ / 16, 42 * actZ / 16);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (quad)
|
if (quad)
|
||||||
|
|||||||
Reference in New Issue
Block a user