diff options
-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); |