From edaa1eceebea60af159a171d91a45e951e2e23f8 Mon Sep 17 00:00:00 2001
From: Vesa Lappalainen <vesal@jyu.fi>
Date: Mon, 22 Nov 2021 13:30:30 +0200
Subject: [PATCH] live15 ennen static

---
 luennot/live23/Pallot/Pallot.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/luennot/live23/Pallot/Pallot.cs b/luennot/live23/Pallot/Pallot.cs
index 74c58ce..460a75a 100644
--- a/luennot/live23/Pallot/Pallot.cs
+++ b/luennot/live23/Pallot/Pallot.cs
@@ -15,7 +15,7 @@ public class Pallot : PhysicsGame
     {
         PhysicsObject p = Luo(this, 100, 100);
         Lisaa();
-        pallo.Color = Color.Yellow;
+        this.pallo.Color = Color.Yellow;
         Lisaa();
         Vaihda(Color.Red);
         Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
@@ -30,7 +30,7 @@ public class Pallot : PhysicsGame
 
     public void Lisaa()
     {
-        pallo = Luo(this, x += 100, -200);
+        Luo(this, x += 100, -200);
     }
 
 
-- 
GitLab