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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-04-11 17:17:13 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-04-11 17:17:13 +0400
commitbb0a3e1d90238369c7f5d6c5e7aebffc4ed6f4ed (patch)
treeebdae59e7b0c2217942089219f4f78c0bcf4af3f /source/gameengine
parentc56b39b8ddda615d85bb6d2dcdcb9e3fa3dc483f (diff)
Game engine: pass string length to BLI_str_cursor_step_prev_utf8 rather than NULL
That's what this function expect (but somehow does not use) and it gave compilation error when using gcc-4.6.3 from debian linux.
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/GameLogic/SCA_KeyboardSensor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp b/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp
index 704b244c52c..b39ae209d67 100644
--- a/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp
+++ b/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp
@@ -344,7 +344,7 @@ void SCA_KeyboardSensor::AddToTargetProp(int keyIndex)
if (oldlength >= 1 ) {
int newlength=oldlength;
- BLI_str_cursor_step_prev_utf8(newprop, NULL, &newlength);
+ BLI_str_cursor_step_prev_utf8(newprop, newprop.Length(), &newlength);
newprop.SetLength(newlength);
CStringValue * newstringprop = new CStringValue(newprop, m_targetprop);