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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user