Cleanup: Py3.7x warning

This commit is contained in:
Campbell Barton 2017-07-27 07:23:36 +10:00
parent 320fc70cf2
commit 17230ec11f
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ int KX_FontObject::pyattr_set_text(void *self_v, const KX_PYATTRIBUTE_DEF *attrd
KX_FontObject* self = static_cast<KX_FontObject*>(self_v);
if (!PyUnicode_Check(value))
return PY_SET_ATTR_FAIL;
char* chars = _PyUnicode_AsString(value);
const char *chars = _PyUnicode_AsString(value);
/* Allow for some logic brick control */
CValue* tprop = self->GetProperty("Text");