Fix arguments order in getStoredValue functions

commit_hash:2506fd0f0e668ab5c9fa6dce18d0d4c17de2a8b1
This commit is contained in:
grechka62
2026-04-30 18:51:32 +03:00
parent 5f737443ce
commit f556a053b5
@@ -267,7 +267,7 @@ internal abstract class GetStoredValue<T: Any>: Function() {
override val isPure = false
protected open val hasScope: Boolean = false
protected val fallbackIndex = if (hasScope) 2 else 1
protected val fallbackIndex get() = if (hasScope) 2 else 1
override fun evaluate(
evaluationContext: EvaluationContext,
@@ -281,7 +281,7 @@ internal abstract class GetStoredValue<T: Any>: Function() {
return evaluationContext.storedValueProvider.get(storedValueName).convert(fallback)
}
val scope = args[2] as String
val scope = args[1] as String
return evaluationContext.storedValueProvider.get(storedValueName, scope).convert(fallback)
}