diff --git a/tutorials/scripting/instancing_with_signals.rst b/tutorials/scripting/instancing_with_signals.rst index fe24a304d..40054f2d6 100644 --- a/tutorials/scripting/instancing_with_signals.rst +++ b/tutorials/scripting/instancing_with_signals.rst @@ -149,7 +149,7 @@ In the main scene, we then connect the player's signal (it will appear in the private void OnPlayerShoot(PackedScene bullet, float direction, Vector2 location) { - var spawnedBullet = (Bullet)bullet.Instantiate(); + var spawnedBullet = bullet.Instantiate(); AddChild(spawnedBullet); spawnedBullet.Rotation = direction; spawnedBullet.Position = location;