diff --git a/Component/DebugMonitorUI.cs b/Component/DebugMonitorUI.cs index 2a158c9..97f50c0 100644 --- a/Component/DebugMonitorUI.cs +++ b/Component/DebugMonitorUI.cs @@ -210,13 +210,13 @@ namespace ADOFAIRenderer.Component // Update Progress Bar var progress = 0f; - int currentFloor = 0; - int totalFloors = 0; + var currentFloor = 0; + var totalFloors = 0; if (scrController.instance && ADOBase.lm && ADOBase.lm.listFloors != null) { currentFloor = scrController.instance.currFloor ? scrController.instance.currFloor.seqID : 0; - totalFloors = ADOBase.lm.listFloors.Count; + totalFloors = ADOBase.lm.listFloors.Count - 1; if (totalFloors > 0) { progress = Mathf.Clamp01((float)currentFloor / totalFloors);