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.
This commit is contained in:
Sergey Sharybin
2012-04-11 13:17:13 +00:00
parent c56b39b8dd
commit bb0a3e1d90

View File

@@ -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);