diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-04-11 17:17:13 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-04-11 17:17:13 +0400 |
commit | bb0a3e1d90238369c7f5d6c5e7aebffc4ed6f4ed (patch) | |
tree | ebdae59e7b0c2217942089219f4f78c0bcf4af3f | |
parent | c56b39b8ddda615d85bb6d2dcdcb9e3fa3dc483f (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.
-rw-r--r-- | source/gameengine/GameLogic/SCA_KeyboardSensor.cpp | 2 |
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); |