diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2017-01-18 11:05:48 -0700 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-01-18 11:34:44 -0700 |
| commit | 45c90f66c22627b478f26d14805b595498b421db (patch) | |
| tree | 1b26999c8d98c325cd8e0a0baa006d0877e303b5 /scripts | |
| parent | 506e2d46ca1fad5a971dc481a896d15d62243b1d (diff) | |
| download | usermoji-45c90f66c22627b478f26d14805b595498b421db.tar.xz | |
scripts: GH1383, Fix Dota2 issue with safe_structs
Change-Id: I158a86639ec802e47f3a87a95af8cf20d1cffbf5
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/helper_file_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/helper_file_generator.py b/scripts/helper_file_generator.py index 7612dabb..3340faf8 100644 --- a/scripts/helper_file_generator.py +++ b/scripts/helper_file_generator.py @@ -592,7 +592,7 @@ class HelperFileOutputGenerator(OutputGenerator): init_list += '\n %s(nullptr),' % (member.name) init_func_txt += ' %s = nullptr;\n' % (member.name) if 'pNext' != member.name and 'void' not in m_type: - if not member.isstaticarray and member.len is None: + if not member.isstaticarray and (member.len is None or '/' in member.len): construct_txt += ' if (in_struct->%s) {\n' % member.name construct_txt += ' %s = new %s(*in_struct->%s);\n' % (member.name, m_type, member.name) construct_txt += ' }\n' |
