Skip to content

Commit 67ff848

Browse files
authored
Fix bug in Python "example.wbt" world (#6708)
Fix the type of the reference to the field node
1 parent 37f0c14 commit 67ff848

File tree

1 file changed

+1
-1
lines changed
  • lib/controller/python/controller

1 file changed

+1
-1
lines changed

lib/controller/python/controller/field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Field:
6363
wb.wb_supervisor_virtual_reality_headset_get_orientation = ctypes.POINTER(ctypes.c_double)
6464

6565
def __init__(self, ref: ctypes.c_void_p):
66-
self._ref = ref
66+
self._ref = ctypes.c_void_p(ref)
6767
if self._ref:
6868
self.type = wb.wb_supervisor_field_get_type(self._ref)
6969
else:

0 commit comments

Comments
 (0)