invalid value for BGE PyObjects was inverted

This commit is contained in:
2009-12-13 20:08:57 +00:00
parent c8fe0daa91
commit 6b207579c8

View File

@@ -256,7 +256,7 @@ PyAttributeDef PyObjectPlus::Attributes[] = {
PyObject* PyObjectPlus::pyattr_get_invalid(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef)
{
return PyBool_FromLong(self_v ? 1:0);
return PyBool_FromLong(self_v ? 0:1);
}
/* note, this is called as a python 'getset, where the PyAttributeDef is the closure */