python3 compatibility for the BGE api, this only works with scons when WITH_BF_NOBLENDER is enabled.

Mathutils, Geometry and BGL modules are currently disabled with python3
This commit is contained in:
Campbell Barton
2009-05-07 05:23:15 +00:00
parent c46fa2745a
commit 779bf435ef
7 changed files with 53 additions and 42 deletions

View File

@@ -168,7 +168,7 @@ void Texture_dealloc (Texture * self)
// release scaled image buffer
delete [] self->m_scaledImg;
// release object
self->ob_type->tp_free((PyObject*)self);
((PyObject *)self)->ob_type->tp_free((PyObject*)self);
}