crash fix in buying booster

this should be in game only
This commit is contained in:
Anthony Calosa
2017-02-24 15:04:12 +08:00
parent efac298eb0
commit d0b2340a73
+3
View File
@@ -530,6 +530,8 @@ void CardGui::Render()
} }
//for necro //for necro
if(game)
{
if (!shadow) if (!shadow)
shadow = card->getObserver()->getResourceManager()->GetQuad("shadow"); shadow = card->getObserver()->getResourceManager()->GetQuad("shadow");
if (shadow) if (shadow)
@@ -543,6 +545,7 @@ void CardGui::Render()
shadow->SetColor(ARGB(myA,255,255,255)); shadow->SetColor(ARGB(myA,255,255,255));
renderer->RenderQuad(shadow.get(), actX, actY, actT, (28 * actZ + 1) / 16, 40 * actZ / 16); renderer->RenderQuad(shadow.get(), actX, actY, actT, (28 * actZ + 1) / 16, 40 * actZ / 16);
} }
}
PlayGuiObject::Render(); PlayGuiObject::Render();
} }