diff --git a/getting_started/first_2d_game/05.the_main_game_scene.rst b/getting_started/first_2d_game/05.the_main_game_scene.rst index a039c07ca..1e4e36174 100644 --- a/getting_started/first_2d_game/05.the_main_game_scene.rst +++ b/getting_started/first_2d_game/05.the_main_game_scene.rst @@ -356,7 +356,7 @@ Note that a new instance must be added to the scene using ``add_child()``. // obviously Mob and PathFollow2D, since they appear later on the line. // Create a new instance of the Mob scene. - var mob = (Mob)MobScene.Instance(); + var mob = MobScene.Instance(); // Choose a random location on Path2D. var mobSpawnLocation = GetNode("MobPath/MobSpawnLocation");