diff --git a/luennot/live23/Pallot/Pallot.cs b/luennot/live23/Pallot/Pallot.cs index 74c58ce7b16ab33cbe71cbfef12164b131916a41..460a75a41d466373b0db69353e960d3d236802e7 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); }