[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12589] trunk/blender/source/blender/ blenkernel/intern/constraint.c: - fix for crash with MSVC compiler, global array constraintsTypeInfo overwriting caused memory corruption
Andrea Weikert
elubie at gmx.net
Wed Nov 14 22:19:49 CET 2007
Revision: 12589
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12589
Author: elubie
Date: 2007-11-14 22:19:49 +0100 (Wed, 14 Nov 2007)
Log Message:
-----------
- fix for crash with MSVC compiler, global array constraintsTypeInfo overwriting caused memory corruption
Aligorith: please check, I think fix is quite obvious though.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/constraint.c
Modified: trunk/blender/source/blender/blenkernel/intern/constraint.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/constraint.c 2007-11-14 16:50:51 UTC (rev 12588)
+++ trunk/blender/source/blender/blenkernel/intern/constraint.c 2007-11-14 21:19:49 UTC (rev 12589)
@@ -3082,7 +3082,7 @@
*/
/* 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 */
More information about the Bf-blender-cvs
mailing list