Commit 72e9c784 authored by v.tarantik's avatar v.tarantik

nullcheck pro chybu pri resetu scalu dilku

parent eeef2061
......@@ -1109,7 +1109,7 @@ public class PronasledovaniActivity extends GameActivity implements IOnSceneTouc
private void resetScaleAndZIndex(int pieceID) {
if (pieceID != -1) {
scalePieceToSize(pieceID, 1.2f, 1.0f);
if (scene != null) {
if ((scene != null) && (scene.getChildByTag(pieceID) != null)) {
scene.getChildByTag(pieceID).setZIndex(0);
scene.sortChildren();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment