diff options
author | Andrea Weikert <elubie@gmx.net> | 2007-11-15 00:19:49 +0300 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2007-11-15 00:19:49 +0300 |
commit | a219d6e238949f68edfdaa7c8350fb39df454c5b (patch) | |
tree | 490224ab0030f899ef6294a7a9dd895f2a9a170d /source/blender/blenkernel/intern | |
parent | c3bbd543c708dd42fc124172939cabde7601fe9d (diff) |
- fix for crash with MSVC compiler, global array constraintsTypeInfo overwriting caused memory corruption
Aligorith: please check, I think fix is quite obvious though.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 558c90b37db..2dc488f8377 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -3082,7 +3082,7 @@ static bConstraintTypeInfo CTI_TRANSFORM = { */ /* These globals only ever get directly accessed in this file */ -static bConstraintTypeInfo *constraintsTypeInfo[NUM_CONSTRAINT_TYPES]; +static bConstraintTypeInfo *constraintsTypeInfo[NUM_CONSTRAINT_TYPES+1]; static short CTI_INIT= 1; /* when non-zero, the list needs to be updated */ /* This function only gets called when CTI_INIT is non-zero */ |