diff --git a/core/lib.rs b/core/lib.rs index f36072e3a..2150ba224 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -636,7 +636,8 @@ impl Statement { } pub fn bind_at(&mut self, index: NonZero, value: OwnedValue) { - self.state.bind_at(index, value); + let internal = self.program.parameters.get_remap(index); + self.state.bind_at(internal, value); } pub fn reset(&mut self) {