Fix access past array boundaries

Need to resize `have_functions` arrays when adding more functions.
Not sure there is more reliable way which will prevent accidents
like this.

Was caused by c47be43674.
This commit is contained in:
Sergey Sharybin 2018-09-26 10:14:25 +02:00
parent c67a51db42
commit d599368cd4
1 changed files with 1 additions and 1 deletions

View File

@ -755,7 +755,7 @@ static StructRNA *rna_GizmoGroup_register(
PointerRNA wgptr;
/* Two sets of functions. */
int have_function[5];
int have_function[6];
/* setup dummy gizmogroup & gizmogroup type to store static properties in */
dummywg.type = &dummywgt;