BGE fix: KX_Lamp using strcmp wrongly + typo in rna_define

This commit is contained in:
Dalai Felinto
2010-02-04 23:51:41 +00:00
parent 26a69496ba
commit f32df64d2b
2 changed files with 4 additions and 4 deletions

View File

@@ -478,7 +478,7 @@ void RNA_struct_free(BlenderRNA *brna, StructRNA *srna)
if(srna->flag & STRUCT_RUNTIME) {
if(RNA_struct_py_type_get(srna)) {
fprintf(stderr, "StructRNA \"%s\" freed while holdng a python reference\n", srna->name);
fprintf(stderr, "StructRNA \"%s\" freed while holding a python reference\n", srna->name);
}
}

View File

@@ -345,11 +345,11 @@ PyObject* KX_LightObject::pyattr_get_typeconst(void *self_v, const KX_PYATTRIBUT
const char* type = attrdef->m_name;
if(strcmp(type, "SPOT")) {
if(!strcmp(type, "SPOT")) {
retvalue = PyLong_FromSsize_t(RAS_LightObject::LIGHT_SPOT);
} else if (strcmp(type, "SUN")) {
} else if (!strcmp(type, "SUN")) {
retvalue = PyLong_FromSsize_t(RAS_LightObject::LIGHT_SUN);
} else if (strcmp(type, "NORMAL")) {
} else if (!strcmp(type, "NORMAL")) {
retvalue = PyLong_FromSsize_t(RAS_LightObject::LIGHT_NORMAL);
}