fix: 0号位状态时向前切换失效.

This commit is contained in:
2025-04-23 14:33:18 +08:00
parent 1e9113666b
commit e2a58cf7bd

View File

@@ -129,7 +129,7 @@ public abstract class AbstractStateManager<S> implements StateManager<S> {
@SuppressWarnings("all") @SuppressWarnings("all")
protected void prev() { protected void prev() {
if (--index < 0) if (--index < 0)
index = 0; index = stateList.size() - 1;
} }
/** /**