BGE Script template for a python module (set EOL to native this time)
BGE PyAPI use defines for error return values - del gameOb['var'] error message was wrong.
This commit is contained in:
@@ -662,7 +662,7 @@ int CValue::py_delattro(PyObject *attr)
|
||||
return 0;
|
||||
|
||||
PyErr_Format(PyExc_AttributeError, "attribute \"%s\" dosnt exist", attr_str);
|
||||
return 1;
|
||||
return PY_SET_ATTR_MISSING;
|
||||
}
|
||||
|
||||
int CValue::py_setattro(PyObject *attr, PyObject* pyobj)
|
||||
|
||||
Reference in New Issue
Block a user