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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user