Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2011-08-16 23:59:08 +0400
committerMitchell Stokes <mogurijin@gmail.com>2011-08-16 23:59:08 +0400
commit9b5c0f65aa6ef942709ea7156ee5a20e9b5f94e9 (patch)
tree4da96a1854895195a32c18b5a686511aeeaf70c8 /source/gameengine/Ketsji/KX_GameObject.cpp
parent0b7911cf0a133b60921dea07567da2d1baf2c523 (diff)
BGE Animations: Increasing the max layer count to 8 as per a user request. Also, layer checks were checking for values between 0 and MAX_ACTION_LAYERS when they should have been checking for values between 0 and MAX_ACTION_LAYERS - 1.
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_GameObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp
index 4f8860f4767..0864fc84a28 100644
--- a/source/gameengine/Ketsji/KX_GameObject.cpp
+++ b/source/gameengine/Ketsji/KX_GameObject.cpp
@@ -3055,7 +3055,7 @@ KX_PYMETHODDEF_DOC_VARARGS(KX_GameObject, sendMessage,
static void layer_check(short &layer, const char *method_name)
{
- if (layer < 0 || layer > MAX_ACTION_LAYERS)
+ if (layer < 0 || layer >= MAX_ACTION_LAYERS)
{
printf("KX_GameObject.%s(): given layer (%d) is out of range (0 - %d), setting to 0.\n", method_name, layer, MAX_ACTION_LAYERS-1);
layer = 0;