Skip to content

Commit

Permalink
fix for too small MATHUTILS_TOT_CB when the game engine runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ideasman42 committed Apr 10, 2012
1 parent 044b0ef commit 1b74ec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/blender/python/mathutils/mathutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ int mathutils_deepcopy_args_check(PyObject *args)
/* Mathutils Callbacks */

/* for mathutils internal use only, eventually should re-alloc but to start with we only have a few users */
#define MATHUTILS_TOT_CB 8
#define MATHUTILS_TOT_CB 10
static Mathutils_Callback *mathutils_callbacks[MATHUTILS_TOT_CB] = {NULL};

unsigned char Mathutils_RegisterCallback(Mathutils_Callback *cb)
Expand All @@ -305,7 +305,7 @@ unsigned char Mathutils_RegisterCallback(Mathutils_Callback *cb)
return i;
}

BLI_assert(i < MATHUTILS_TOT_CB);
BLI_assert(i + 1 < MATHUTILS_TOT_CB);

mathutils_callbacks[i] = cb;
return i;
Expand Down

0 comments on commit 1b74ec9

Please sign in to comment.