diff --git a/getting_started/first_3d_game/08.score_and_replay.rst b/getting_started/first_3d_game/08.score_and_replay.rst index 040620687..030abe8ae 100644 --- a/getting_started/first_3d_game/08.score_and_replay.rst +++ b/getting_started/first_3d_game/08.score_and_replay.rst @@ -429,7 +429,7 @@ Here is the complete ``Main.gd`` script for reference. public void OnMobTimerTimeout() { - Mob mob = MobScene.Instance(); + Mob mob = (Mob)MobScene.Instance(); var mobSpawnLocation = GetNode("SpawnPath/SpawnLocation"); mobSpawnLocation.UnitOffset = GD.Randf();