🎨 Live review changes

This commit is contained in:
jonathan
2025-11-03 20:21:30 +01:00
parent 83dc6bfd56
commit 21b361f9d7
8 changed files with 8 additions and 28 deletions
@@ -32,7 +32,7 @@ public partial class FightSceneSwitcher : Node
public void SwitchRoom(int pathIndex)
{
Debug.Assert(FightWorld.Instance.currentRoom != null, "FightWorld.Instance.currentRoom!=null");
if (!FightWorld.Instance.currentRoom.paths.TryGetValue(pathIndex, out var nextRoom))
throw new Exception("Trying to go down a non-existent path");