diff --git a/godot_rl/wrappers/ray_wrapper.py b/godot_rl/wrappers/ray_wrapper.py index 9357214c..9c4caffe 100644 --- a/godot_rl/wrappers/ray_wrapper.py +++ b/godot_rl/wrappers/ray_wrapper.py @@ -47,7 +47,7 @@ def vector_reset(self, *, seeds: Optional[List[int]] = None, options: Optional[L def vector_step( self, actions: List[EnvActionType] ) -> Tuple[List[EnvObsType], List[float], List[bool], List[EnvInfoDict]]: - actions = np.array(actions) + actions = np.array(actions, dtype=np.dtype(object)) self.obs, reward, term, trunc, info = self._env.step(actions, order_ij=True) return self.obs, reward, term, trunc, info