Skip to content

Commit 4804f12

Browse files
committed
Fixed send prop datatable values not being added properly to entities.classes._ServerClasses objects.
1 parent 6fdc422 commit 4804f12

File tree

1 file changed

+6
-2
lines changed
  • addons/source-python/packages/source-python/entities

1 file changed

+6
-2
lines changed

addons/source-python/packages/source-python/entities/classes.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,12 @@ def _find_properties(self, table, base_name='', base_offset=0):
260260
# Is the current property a datatable?
261261
if prop.type == SendPropTypes.DATATABLE:
262262

263-
# Find all properties for the table
264-
self._find_properties(prop.data_table, name, offset)
263+
# Loop through all properties in the datatable
264+
for name, prop, offset in self._find_properties(
265+
prop.data_table, name + '.', offset):
266+
267+
# Yield their values
268+
yield (name, prop, offset)
265269

266270
# Is the current property not a datatable?
267271
else:

0 commit comments

Comments
 (0)